Scippy

SCIP

Solving Constraint Integer Programs

scip::ObjDisp Class Referenceabstract

Detailed Description

C++ wrapper for display columns.

This class defines the interface for display columns 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 54 of file objdisp.h.

C++ wrapper for display columns. More...

#include <objdisp.h>

Public Member Functions

 ObjDisp (SCIP *scip, const char *name, const char *desc, const char *header, int width, int priority, int position, SCIP_Bool stripline)
 
 ObjDisp (const ObjDisp &o)
 
 ObjDisp (ObjDisp &&o)
 
virtual ~ObjDisp ()
 
ObjDispoperator= (const ObjDisp &o)=delete
 
ObjDispoperator= (ObjDisp &&o)=delete
 
virtual SCIP_DECL_DISPFREE (scip_free)
 
virtual SCIP_DECL_DISPINIT (scip_init)
 
virtual SCIP_DECL_DISPEXIT (scip_exit)
 
virtual SCIP_DECL_DISPINITSOL (scip_initsol)
 
virtual SCIP_DECL_DISPEXITSOL (scip_exitsol)
 
virtual SCIP_DECL_DISPOUTPUT (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_
 
char * scip_header_
 
const int scip_width_
 
const int scip_priority_
 
const int scip_position_
 
const SCIP_Bool scip_stripline_
 

Constructor & Destructor Documentation

◆ ObjDisp() [1/3]

scip::ObjDisp::ObjDisp ( SCIP scip,
const char *  name,
const char *  desc,
const char *  header,
int  width,
int  priority,
int  position,
SCIP_Bool  stripline 
)
inline

default constructor

Parameters
scipSCIP data structure
namename of display column
descdescription of display column
headerhead line of display column
widthwidth of display column (no. of chars used)
prioritypriority of display column
positionrelative position of display column
striplineshould the column be separated with a line from its right neighbour?

Definition at line 84 of file objdisp.h.

References SCIP_CALL_ABORT, and SCIPduplicateMemoryArray.

◆ ObjDisp() [2/3]

scip::ObjDisp::ObjDisp ( const ObjDisp o)
inline

copy constructor

Definition at line 110 of file objdisp.h.

◆ ObjDisp() [3/3]

scip::ObjDisp::ObjDisp ( ObjDisp &&  o)
inline

move constructor

Definition at line 117 of file objdisp.h.

◆ ~ObjDisp()

virtual scip::ObjDisp::~ObjDisp ( )
inlinevirtual

destructor

Definition at line 133 of file objdisp.h.

References operator=(), and SCIPfreeMemoryArray.

Member Function Documentation

◆ operator=() [1/2]

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

assignment of polymorphic classes causes slicing and is therefore disabled.

Referenced by ~ObjDisp().

◆ operator=() [2/2]

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

assignment of polymorphic classes causes slicing and is therefore disabled.

◆ SCIP_DECL_DISPFREE()

virtual scip::ObjDisp::SCIP_DECL_DISPFREE ( scip_free  )
inlinevirtual

destructor of display column to free user data (called when SCIP is exiting)

See also
SCIP_DECL_DISPFREE(x) in type_disp.h

Definition at line 152 of file objdisp.h.

References SCIP_OKAY.

◆ SCIP_DECL_DISPINIT()

virtual scip::ObjDisp::SCIP_DECL_DISPINIT ( scip_init  )
inlinevirtual

initialization method of display column (called after problem was transformed)

See also
SCIP_DECL_DISPINIT(x) in type_disp.h

Definition at line 161 of file objdisp.h.

References SCIP_OKAY.

◆ SCIP_DECL_DISPEXIT()

virtual scip::ObjDisp::SCIP_DECL_DISPEXIT ( scip_exit  )
inlinevirtual

deinitialization method of display column (called before transformed problem is freed)

See also
SCIP_DECL_DISPEXIT(x) in type_disp.h

Definition at line 170 of file objdisp.h.

References SCIP_OKAY.

◆ SCIP_DECL_DISPINITSOL()

virtual scip::ObjDisp::SCIP_DECL_DISPINITSOL ( scip_initsol  )
inlinevirtual

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

See also
SCIP_DECL_DISPINITSOL(x) in type_disp.h

Definition at line 179 of file objdisp.h.

References SCIP_OKAY.

◆ SCIP_DECL_DISPEXITSOL()

virtual scip::ObjDisp::SCIP_DECL_DISPEXITSOL ( scip_exitsol  )
inlinevirtual

solving process deinitialization method of display column (called before branch and bound process data is freed)

See also
SCIP_DECL_DISPEXITSOL(x) in type_disp.h

Definition at line 188 of file objdisp.h.

References SCIP_Bool, SCIP_DECL_DISPOUTPUT(), SCIP_OKAY, SCIPfindObjDisp(), SCIPgetObjDisp(), and SCIPincludeObjDisp().

◆ SCIP_DECL_DISPOUTPUT()

virtual scip::ObjDisp::SCIP_DECL_DISPOUTPUT ( scip_output  )
pure virtual

output method of display column to output file stream 'file'

See also
SCIP_DECL_DISPOUTPUT(x) in type_disp.h

Referenced by SCIP_DECL_DISPEXITSOL().

Field Documentation

◆ scip_

SCIP* scip::ObjDisp::scip_

SCIP data structure

Definition at line 60 of file objdisp.h.

◆ scip_name_

char* scip::ObjDisp::scip_name_

name of the display column

Definition at line 63 of file objdisp.h.

Referenced by SCIPincludeObjDisp().

◆ scip_desc_

char* scip::ObjDisp::scip_desc_

description of the display column

Definition at line 66 of file objdisp.h.

Referenced by SCIPincludeObjDisp().

◆ scip_header_

char* scip::ObjDisp::scip_header_

head line of the display column

Definition at line 69 of file objdisp.h.

Referenced by SCIPincludeObjDisp().

◆ scip_width_

const int scip::ObjDisp::scip_width_

width of the display column (no. of chars used)

Definition at line 72 of file objdisp.h.

Referenced by SCIPincludeObjDisp().

◆ scip_priority_

const int scip::ObjDisp::scip_priority_

priority of the display column

Definition at line 75 of file objdisp.h.

Referenced by SCIPincludeObjDisp().

◆ scip_position_

const int scip::ObjDisp::scip_position_

relative position of the display column

Definition at line 78 of file objdisp.h.

Referenced by SCIPincludeObjDisp().

◆ scip_stripline_

const SCIP_Bool scip::ObjDisp::scip_stripline_

should the column be separated with a line from its right neighbour?

Definition at line 81 of file objdisp.h.

Referenced by SCIPincludeObjDisp().