35 struct SCIP_EventhdlrData
60 assert(eventhdlrdata !=
NULL);
61 assert(eventhdlrdata->objeventhdlr !=
NULL);
62 assert(eventhdlrdata->objeventhdlr->scip_ !=
scip);
64 if( eventhdlrdata->objeventhdlr->iscloneable() )
83 assert(eventhdlrdata !=
NULL);
84 assert(eventhdlrdata->objeventhdlr !=
NULL);
85 assert(eventhdlrdata->objeventhdlr->scip_ ==
scip);
88 SCIP_CALL( eventhdlrdata->objeventhdlr->scip_free(
scip, eventhdlr) );
91 if( eventhdlrdata->deleteobject )
92 delete eventhdlrdata->objeventhdlr;
109 assert(eventhdlrdata !=
NULL);
110 assert(eventhdlrdata->objeventhdlr !=
NULL);
111 assert(eventhdlrdata->objeventhdlr->scip_ ==
scip);
114 SCIP_CALL( eventhdlrdata->objeventhdlr->scip_init(
scip, eventhdlr) );
127 assert(eventhdlrdata !=
NULL);
128 assert(eventhdlrdata->objeventhdlr !=
NULL);
131 SCIP_CALL( eventhdlrdata->objeventhdlr->scip_exit(
scip, eventhdlr) );
144 assert(eventhdlrdata !=
NULL);
145 assert(eventhdlrdata->objeventhdlr !=
NULL);
148 SCIP_CALL( eventhdlrdata->objeventhdlr->scip_initsol(
scip, eventhdlr) );
161 assert(eventhdlrdata !=
NULL);
162 assert(eventhdlrdata->objeventhdlr !=
NULL);
165 SCIP_CALL( eventhdlrdata->objeventhdlr->scip_exitsol(
scip, eventhdlr) );
178 assert(eventhdlrdata !=
NULL);
179 assert(eventhdlrdata->objeventhdlr !=
NULL);
182 SCIP_CALL( eventhdlrdata->objeventhdlr->scip_delete(
scip, eventhdlr, eventdata) );
195 assert(eventhdlrdata !=
NULL);
196 assert(eventhdlrdata->objeventhdlr !=
NULL);
199 SCIP_CALL( eventhdlrdata->objeventhdlr->scip_exec(
scip, eventhdlr, event, eventdata) );
220 assert(scip !=
NULL);
221 assert(objeventhdlr !=
NULL);
225 eventhdlrdata->objeventhdlr = objeventhdlr;
226 eventhdlrdata->deleteobject = deleteobject;
231 eventhdlrFreeObj, eventhdlrInitObj, eventhdlrExitObj,
232 eventhdlrInitsolObj, eventhdlrExitsolObj, eventhdlrDeleteObj, eventhdlrExecObj,
248 if( eventhdlr ==
NULL )
252 assert(eventhdlrdata !=
NULL);
254 return eventhdlrdata->objeventhdlr;
266 assert(eventhdlrdata !=
NULL);
268 return eventhdlrdata->objeventhdlr;
static SCIP_DECL_EVENTEXIT(eventhdlrExitObj)
SCIP_RETCODE SCIPincludeObjEventhdlr(SCIP *scip, scip::ObjEventhdlr *objeventhdlr, SCIP_Bool deleteobject)
C++ wrapper for event handlers.
struct SCIP_EventhdlrData SCIP_EVENTHDLRDATA
enum SCIP_Retcode SCIP_RETCODE
static SCIP_DECL_EVENTEXITSOL(eventhdlrExitsolObj)
SCIP_EVENTHDLR * SCIPfindEventhdlr(SCIP *scip, const char *name)
static SCIP_DECL_EVENTINIT(eventhdlrInitObj)
void SCIPeventhdlrSetData(SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTHDLRDATA *eventhdlrdata)
static SCIP_DECL_EVENTINITSOL(eventhdlrInitsolObj)
static SCIP_DECL_EVENTEXEC(eventhdlrExecObj)
scip::ObjEventhdlr * SCIPgetObjEventhdlr(SCIP *scip, SCIP_EVENTHDLR *eventhdlr)
static SCIP_DECL_EVENTCOPY(eventhdlrCopyObj)
scip::ObjEventhdlr * SCIPfindObjEventhdlr(SCIP *scip, const char *name)
SCIP_RETCODE SCIPincludeEventhdlr(SCIP *scip, const char *name, const char *desc, SCIP_DECL_EVENTCOPY((*eventcopy)), SCIP_DECL_EVENTFREE((*eventfree)), SCIP_DECL_EVENTINIT((*eventinit)), SCIP_DECL_EVENTEXIT((*eventexit)), SCIP_DECL_EVENTINITSOL((*eventinitsol)), SCIP_DECL_EVENTEXITSOL((*eventexitsol)), SCIP_DECL_EVENTDELETE((*eventdelete)), SCIP_DECL_EVENTEXEC((*eventexec)), SCIP_EVENTHDLRDATA *eventhdlrdata)
C++ wrapper for event handlers.
static SCIP_DECL_EVENTFREE(eventhdlrFreeObj)
static SCIP_DECL_EVENTDELETE(eventhdlrDeleteObj)
SCIP_EVENTHDLRDATA * SCIPeventhdlrGetData(SCIP_EVENTHDLR *eventhdlr)