C++ wrapper for event handlers.
This class defines the interface for eventt handlers implemented in C++. Note that there is a pure virtual function (this function has to be implemented). This function is: scip_exec().
Definition at line 42 of file objeventhdlr.h.
#include <objeventhdlr.h>
Public Member Functions | |
ObjEventhdlr (SCIP *scip, const char *name, const char *desc) | |
virtual | ~ObjEventhdlr () |
virtual | SCIP_DECL_EVENTFREE (scip_free) |
virtual | SCIP_DECL_EVENTINIT (scip_init) |
virtual | SCIP_DECL_EVENTEXIT (scip_exit) |
virtual | SCIP_DECL_EVENTINITSOL (scip_initsol) |
virtual | SCIP_DECL_EVENTEXITSOL (scip_exitsol) |
virtual | SCIP_DECL_EVENTDELETE (scip_delete) |
virtual | SCIP_DECL_EVENTEXEC (scip_exec)=0 |
Public Member Functions inherited from scip::ObjCloneable | |
virtual | ~ObjCloneable () |
virtual | SCIP_DECL_OBJCLONEABLECLONE (ObjCloneable *clone) |
virtual | SCIP_DECL_OBJCLONEABLEISCLONEABLE (iscloneable) |
Data Fields | |
SCIP * | scip_ |
char * | scip_name_ |
char * | scip_desc_ |
|
inline |
default constructor
scip | SCIP data structure |
name | name of event handler |
desc | description of event handler |
Definition at line 57 of file objeventhdlr.h.
References SCIP_CALL_ABORT, and SCIPduplicateMemoryArray.
|
inlinevirtual |
|
inlinevirtual |
destructor of event handler to free user data (called when SCIP is exiting)
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 84 of file objeventhdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
initialization method of event handler (called after problem was transformed)
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 93 of file objeventhdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
deinitialization method of event handler (called before transformed problem is freed)
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 102 of file objeventhdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
solving process initialization method of event handler (called when branch and bound process is about to begin)
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 111 of file objeventhdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
solving process deinitialization method of event handler (called before branch and bound process data is freed)
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 120 of file objeventhdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
frees specific constraint data
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 129 of file objeventhdlr.h.
References SCIP_Bool, SCIP_DECL_EVENTEXEC(), SCIP_OKAY, SCIPfindObjEventhdlr(), SCIPgetObjEventhdlr(), and SCIPincludeObjEventhdlr().
|
pure virtual |
execution method of event handler
Implemented in tsp::EventhdlrNewSol.
Referenced by SCIP_DECL_EVENTDELETE().
SCIP* scip::ObjEventhdlr::scip_ |
SCIP data structure
Definition at line 48 of file objeventhdlr.h.
char* scip::ObjEventhdlr::scip_name_ |
name of the event handler
Definition at line 51 of file objeventhdlr.h.
Referenced by SCIPincludeObjEventhdlr().
char* scip::ObjEventhdlr::scip_desc_ |
description of the event handler
Definition at line 54 of file objeventhdlr.h.
Referenced by SCIPincludeObjEventhdlr().