Scippy

SCIP

Solving Constraint Integer Programs

scip::ObjTable Class Referenceabstract

Detailed Description

C++ wrapper for statistics tables.

This class defines the interface for statistics tables implemented in C++. Note that there is a pure virtual function (this function has to be implemented). This function is: scip_output().

Definition at line 53 of file objtable.h.

C++ wrapper for statistics tables. More...

#include <objtable.h>

Public Member Functions

 ObjTable (SCIP *scip, const char *name, const char *desc, int position, SCIP_STAGE earlieststage)
 
 ObjTable (const ObjTable &o)
 
 ObjTable (ObjTable &&o)
 
virtual ~ObjTable ()
 
ObjTableoperator= (const ObjTable &o)=delete
 
ObjTableoperator= (ObjTable &&o)=delete
 
virtual SCIP_DECL_TABLEFREE (scip_free)
 
virtual SCIP_DECL_TABLEINIT (scip_init)
 
virtual SCIP_DECL_TABLEEXIT (scip_exit)
 
virtual SCIP_DECL_TABLEINITSOL (scip_initsol)
 
virtual SCIP_DECL_TABLEEXITSOL (scip_exitsol)
 
virtual SCIP_DECL_TABLEOUTPUT (scip_output)=0
 
- Public Member Functions inherited from scip::ObjCloneable
virtual ~ObjCloneable ()
 
ObjCloneableoperator= (const ObjCloneable &o)=delete
 
ObjCloneableoperator= (ObjCloneable &&o)=delete
 
virtual SCIP_DECL_OBJCLONEABLECLONE (ObjCloneable *clone)
 
virtual SCIP_DECL_OBJCLONEABLEISCLONEABLE (iscloneable)
 

Data Fields

SCIPscip_
 
char * scip_name_
 
char * scip_desc_
 
const int scip_position_
 
SCIP_STAGE scip_earlieststage_
 

Constructor & Destructor Documentation

◆ ObjTable() [1/3]

scip::ObjTable::ObjTable ( SCIP scip,
const char *  name,
const char *  desc,
int  position,
SCIP_STAGE  earlieststage 
)
inline

default constructor

Parameters
scipSCIP data structure
namename of statistics table
descdescription of statistics table
positionposition of statistics table
earlieststageoutput of the statistics table is only printed from this stage onwards

Definition at line 74 of file objtable.h.

References SCIP_CALL_ABORT, and SCIPduplicateMemoryArray.

◆ ObjTable() [2/3]

scip::ObjTable::ObjTable ( const ObjTable o)
inline

copy constructor

Definition at line 93 of file objtable.h.

◆ ObjTable() [3/3]

scip::ObjTable::ObjTable ( ObjTable &&  o)
inline

move constructor

Definition at line 98 of file objtable.h.

◆ ~ObjTable()

virtual scip::ObjTable::~ObjTable ( )
inlinevirtual

destructor

Definition at line 110 of file objtable.h.

References operator=(), and SCIPfreeMemoryArray.

Member Function Documentation

◆ operator=() [1/2]

ObjTable& scip::ObjTable::operator= ( const ObjTable o)
delete

assignment of polymorphic classes causes slicing and is therefore disabled.

Referenced by ~ObjTable().

◆ operator=() [2/2]

ObjTable& scip::ObjTable::operator= ( ObjTable &&  o)
delete

assignment of polymorphic classes causes slicing and is therefore disabled.

◆ SCIP_DECL_TABLEFREE()

virtual scip::ObjTable::SCIP_DECL_TABLEFREE ( scip_free  )
inlinevirtual

destructor of statistics table to free user data (called when SCIP is exiting)

See also
SCIP_DECL_TABLEFREE(x) in type_disp.h

Definition at line 128 of file objtable.h.

References SCIP_OKAY.

◆ SCIP_DECL_TABLEINIT()

virtual scip::ObjTable::SCIP_DECL_TABLEINIT ( scip_init  )
inlinevirtual

initialization method of statistics table (called after problem was transformed)

See also
SCIP_DECL_TABLEINIT(x) in type_table.h

Definition at line 137 of file objtable.h.

References SCIP_OKAY.

◆ SCIP_DECL_TABLEEXIT()

virtual scip::ObjTable::SCIP_DECL_TABLEEXIT ( scip_exit  )
inlinevirtual

deinitialization method of statistics table (called before transformed problem is freed)

See also
SCIP_DECL_TABLEEXIT(x) in type_table.h

Definition at line 146 of file objtable.h.

References SCIP_OKAY.

◆ SCIP_DECL_TABLEINITSOL()

virtual scip::ObjTable::SCIP_DECL_TABLEINITSOL ( scip_initsol  )
inlinevirtual

solving process initialization method of statistics table (called when branch and bound process is about to begin)

See also
SCIP_DECL_TABLEINITSOL(x) in type_table.h

Definition at line 155 of file objtable.h.

References SCIP_OKAY.

◆ SCIP_DECL_TABLEEXITSOL()

virtual scip::ObjTable::SCIP_DECL_TABLEEXITSOL ( scip_exitsol  )
inlinevirtual

solving process deinitialization method of statistics table (called before branch and bound process data is freed)

See also
SCIP_DECL_TABLEEXITSOL(x) in type_table.h

Definition at line 164 of file objtable.h.

References SCIP_Bool, SCIP_DECL_TABLEOUTPUT(), SCIP_OKAY, SCIPfindObjTable(), SCIPgetObjTable(), and SCIPincludeObjTable().

◆ SCIP_DECL_TABLEOUTPUT()

virtual scip::ObjTable::SCIP_DECL_TABLEOUTPUT ( scip_output  )
pure virtual

output method of statistics table to output file stream 'file'

See also
SCIP_DECL_TABLEOUTPUT(x) in type_table.h

Referenced by SCIP_DECL_TABLEEXITSOL().

Field Documentation

◆ scip_

SCIP* scip::ObjTable::scip_

SCIP data structure

Definition at line 59 of file objtable.h.

◆ scip_name_

char* scip::ObjTable::scip_name_

name of the statistics tables

Definition at line 62 of file objtable.h.

Referenced by SCIPincludeObjTable().

◆ scip_desc_

char* scip::ObjTable::scip_desc_

description of the statistics table

Definition at line 65 of file objtable.h.

Referenced by SCIPincludeObjTable().

◆ scip_position_

const int scip::ObjTable::scip_position_

position of the statistics table

Definition at line 68 of file objtable.h.

Referenced by SCIPincludeObjTable().

◆ scip_earlieststage_

SCIP_STAGE scip::ObjTable::scip_earlieststage_

output of the statistics table is only printed from this stage onwards

Definition at line 71 of file objtable.h.

Referenced by SCIPincludeObjTable().