Detailed Description
C++ wrapper for statistics tables.
Definition in file objtable.h.
Go to the source code of this file.
Data Structures | |
class | scip::ObjTable |
C++ wrapper for statistics tables. More... | |
Namespaces | |
namespace | scip |
Functions | |
SCIP_RETCODE | SCIPincludeObjTable (SCIP *scip, scip::ObjTable *objtable, SCIP_Bool deleteobject) |
scip::ObjTable * | SCIPfindObjTable (SCIP *scip, const char *name) |
scip::ObjTable * | SCIPgetObjTable (SCIP *scip, SCIP_TABLE *table) |
Function Documentation
◆ SCIPincludeObjTable()
SCIP_RETCODE SCIPincludeObjTable | ( | SCIP * | scip, |
scip::ObjTable * | objtable, | ||
SCIP_Bool | deleteobject | ||
) |
creates the statistics table for the given statistics table object and includes it in SCIP
The method should be called in one of the following ways:
- The user is resposible of deleting the object: SCIP_CALL( SCIPcreate(&scip) ); ... MyTable* mytable = new MyTable(...); SCIP_CALL( SCIPincludeObjTable(scip, &mytable, FALSE) ); ... SCIP_CALL( SCIPfree(&scip) ); delete mytable; // delete table AFTER SCIPfree() !
- The object pointer is passed to SCIP and deleted by SCIP in the SCIPfree() call: SCIP_CALL( SCIPcreate(&scip) ); ... SCIP_CALL( SCIPincludeObjTable(scip, new MyTable(...), TRUE) ); ... SCIP_CALL( SCIPfree(&scip) ); // destructor of MyTable is called here
creates the statistics table for the given statistics table object and includes it in SCIP
- Parameters
-
scip SCIP data structure objtable statistics table object deleteobject should the statistics table object be deleted when statistics table is freed?
Definition at line 204 of file objtable.cpp.
References NULL, SCIP_CALL, scip::ObjTable::scip_desc_, scip::ObjTable::scip_earlieststage_, scip::ObjTable::scip_name_, SCIP_OKAY, scip::ObjTable::scip_position_, SCIPincludeTable(), and TRUE.
Referenced by SCIP_DECL_TABLECOPY().
◆ SCIPfindObjTable()
scip::ObjTable * SCIPfindObjTable | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the statistics table object of the given name, or 0 if not existing
- Parameters
-
scip SCIP data structure name name of statistics table
Definition at line 229 of file objtable.cpp.
References NULL, SCIPfindTable(), and SCIPtableGetData().
◆ SCIPgetObjTable()
scip::ObjTable * SCIPgetObjTable | ( | SCIP * | scip, |
SCIP_TABLE * | table | ||
) |
returns the statistics table object for the given statistics table
- Parameters
-
scip SCIP data structure table statistics table
Definition at line 248 of file objtable.cpp.
References NULL, and SCIPtableGetData().