Detailed Description
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.
C++ wrapper for event handlers. More...
#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_ |
Constructor & Destructor Documentation
◆ ObjEventhdlr()
|
inline |
default constructor
- Parameters
-
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.
◆ ~ObjEventhdlr()
|
inlinevirtual |
Member Function Documentation
◆ SCIP_DECL_EVENTFREE()
|
inlinevirtual |
destructor of event handler to free user data (called when SCIP is exiting)
- See also
- SCIP_DECL_EVENTFREE(x) in type_event.h
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 84 of file objeventhdlr.h.
References SCIP_OKAY.
◆ SCIP_DECL_EVENTINIT()
|
inlinevirtual |
initialization method of event handler (called after problem was transformed)
- See also
- SCIP_DECL_EVENTINIT(x) in type_event.h
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 93 of file objeventhdlr.h.
References SCIP_OKAY.
◆ SCIP_DECL_EVENTEXIT()
|
inlinevirtual |
deinitialization method of event handler (called before transformed problem is freed)
- See also
- SCIP_DECL_EVENTEXIT(x) in type_event.h
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 102 of file objeventhdlr.h.
References SCIP_OKAY.
◆ SCIP_DECL_EVENTINITSOL()
|
inlinevirtual |
solving process initialization method of event handler (called when branch and bound process is about to begin)
- See also
- SCIP_DECL_EVENTINITSOL(x) in type_event.h
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 111 of file objeventhdlr.h.
References SCIP_OKAY.
◆ SCIP_DECL_EVENTEXITSOL()
|
inlinevirtual |
solving process deinitialization method of event handler (called before branch and bound process data is freed)
- See also
- SCIP_DECL_EVENTEXITSOL(x) in type_event.h
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 120 of file objeventhdlr.h.
References SCIP_OKAY.
◆ SCIP_DECL_EVENTDELETE()
|
inlinevirtual |
frees specific constraint data
- See also
- SCIP_DECL_EVENTDELETE(x) in type_event.h
Reimplemented in tsp::EventhdlrNewSol.
Definition at line 129 of file objeventhdlr.h.
References SCIP_Bool, SCIP_DECL_EVENTEXEC(), SCIP_OKAY, SCIPfindObjEventhdlr(), SCIPgetObjEventhdlr(), and SCIPincludeObjEventhdlr().
◆ SCIP_DECL_EVENTEXEC()
|
pure virtual |
execution method of event handler
- See also
- SCIP_DECL_EVENTEXEC(x) in type_event.h
Implemented in tsp::EventhdlrNewSol.
Referenced by SCIP_DECL_EVENTDELETE().
Field Documentation
◆ scip_
SCIP* scip::ObjEventhdlr::scip_ |
SCIP data structure
Definition at line 48 of file objeventhdlr.h.
◆ scip_name_
char* scip::ObjEventhdlr::scip_name_ |
name of the event handler
Definition at line 51 of file objeventhdlr.h.
Referenced by SCIPincludeObjEventhdlr().
◆ scip_desc_
char* scip::ObjEventhdlr::scip_desc_ |
description of the event handler
Definition at line 54 of file objeventhdlr.h.
Referenced by SCIPincludeObjEventhdlr().