Scippy

SCIP

Solving Constraint Integer Programs

objdisp.h File Reference

Detailed Description

C++ wrapper for display columns.

Author
Kati Wolter

Definition in file objdisp.h.

#include <cstring>
#include "scip/scip.h"
#include "objscip/objcloneable.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPincludeObjDisp (SCIP *scip, scip::ObjDisp *objdisp, SCIP_Bool deleteobject)
 
scip::ObjDispSCIPfindObjDisp (SCIP *scip, const char *name)
 
scip::ObjDispSCIPgetObjDisp (SCIP *scip, SCIP_DISP *disp)
 

Function Documentation

SCIP_RETCODE SCIPincludeObjDisp ( SCIP scip,
scip::ObjDisp objdisp,
SCIP_Bool  deleteobject 
)

creates the display column for the given display column object and includes it in SCIP

The method should be called in one of the following ways:

  1. The user is resposible of deleting the object: SCIP_CALL( SCIPcreate(&scip) ); ... MyDisp* mydisp = new MyDisp(...); SCIP_CALL( SCIPincludeObjDisp(scip, &mydisp, FALSE) ); ... SCIP_CALL( SCIPfree(&scip) ); delete mydisp; // delete disp AFTER SCIPfree() !
  2. The object pointer is passed to SCIP and deleted by SCIP in the SCIPfree() call: SCIP_CALL( SCIPcreate(&scip) ); ... SCIP_CALL( SCIPincludeObjDisp(scip, new MyDisp(...), TRUE) ); ... SCIP_CALL( SCIPfree(&scip) ); // destructor of MyDisp is called here
Parameters
scipSCIP data structure
objdispdisplay column object
deleteobjectshould the display column object be deleted when display column is freed?

Referenced by scip::ObjDisp::SCIP_DECL_DISPEXITSOL().

scip::ObjDisp* SCIPfindObjDisp ( SCIP scip,
const char *  name 
)

returns the display column object of the given name, or 0 if not existing

Parameters
scipSCIP data structure
namename of display column

Referenced by scip::ObjDisp::SCIP_DECL_DISPEXITSOL().

scip::ObjDisp* SCIPgetObjDisp ( SCIP scip,
SCIP_DISP disp 
)

returns the display column object for the given display column

Parameters
scipSCIP data structure
dispdisplay column

Referenced by scip::ObjDisp::SCIP_DECL_DISPEXITSOL().