methods for the inclusion and access of display plugins
SCIP_DISPDATA* SCIPdispGetData | ( | SCIP_DISP * | disp | ) |
gets user data of display column
disp | display column |
Definition at line 262 of file disp.c.
References SCIP_Disp::dispdata.
Referenced by SCIP_DECL_DISPCOPY(), SCIP_DECL_DISPEXIT(), SCIP_DECL_DISPEXITSOL(), SCIP_DECL_DISPFREE(), SCIP_DECL_DISPINIT(), SCIP_DECL_DISPINITSOL(), SCIP_DECL_DISPOUTPUT(), SCIPfindObjDisp(), and SCIPgetObjDisp().
void SCIPdispSetData | ( | SCIP_DISP * | disp, |
SCIP_DISPDATA * | dispdata | ||
) |
sets user data of display column; user has to free old data in advance!
disp | display column |
dispdata | new display column user data |
Definition at line 272 of file disp.c.
References SCIP_Disp::dispdata.
Referenced by SCIP_DECL_DISPFREE(), SCIP_DECL_DISPINITSOL(), and SCIP_DECL_DISPOUTPUT().
const char* SCIPdispGetName | ( | SCIP_DISP * | disp | ) |
gets name of display column
disp | display column |
Definition at line 283 of file disp.c.
References SCIP_Disp::name.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DISPCOPY(), SCIP_DECL_DISPINITSOL(), SCIP_DECL_DISPOUTPUT(), SCIPdispCopyInclude(), SCIPincludeDialogDefaultFix(), SCIPincludeDialogDefaultSet(), and SCIPsetFindBranchrule().
const char* SCIPdispGetDesc | ( | SCIP_DISP * | disp | ) |
gets description of display column
disp | display column |
Definition at line 293 of file disp.c.
References SCIP_Disp::desc.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
const char* SCIPdispGetHeader | ( | SCIP_DISP * | disp | ) |
gets head line of display column
disp | display column |
Definition at line 303 of file disp.c.
References SCIP_Disp::header.
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPdispGetWidth | ( | SCIP_DISP * | disp | ) |
gets width of display column
disp | display column |
Definition at line 313 of file disp.c.
References SCIP_Disp::width.
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPdispGetPriority | ( | SCIP_DISP * | disp | ) |
gets priority of display column
disp | display column |
Definition at line 323 of file disp.c.
References SCIP_Disp::priority.
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPdispGetPosition | ( | SCIP_DISP * | disp | ) |
gets position of display column
disp | display column |
Definition at line 333 of file disp.c.
References SCIP_Disp::position.
Referenced by SCIP_DECL_DIALOGEXEC(), and SCIPsetIncludeBranchrule().
SCIP_DISPSTATUS SCIPdispGetStatus | ( | SCIP_DISP * | disp | ) |
gets status of display column
disp | display column |
Definition at line 343 of file disp.c.
References SCIP_Disp::dispstatus.
Referenced by SCIP_DECL_DIALOGEXEC().
is display column initialized?
disp | display column |
Definition at line 353 of file disp.c.
References SCIP_Disp::initialized.
Referenced by SCIPsetIncludeBranchrule().
void SCIPdispLongint | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
FILE * | file, | ||
SCIP_Longint | val, | ||
int | width | ||
) |
displays a long integer in decimal form fitting in a given width
messagehdlr | message handler |
file | output stream |
val | value to display |
width | width to fit into |
Definition at line 529 of file disp.c.
References MAXDECPOWER, SCIP_Longint, SCIP_MAXSTRLEN, SCIPmessageFPrintInfo(), and SCIPsnprintf().
Referenced by SCIP_DECL_DISPOUTPUT(), and SCIPdispInt().
void SCIPdispInt | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
FILE * | file, | ||
int | val, | ||
int | width | ||
) |
displays an integer in decimal form fitting in a given width
messagehdlr | message handler |
file | output stream |
val | value to display |
width | width to fit into |
Definition at line 575 of file disp.c.
References SCIP_Longint, and SCIPdispLongint().
Referenced by SCIP_DECL_DISPOUTPUT().
void SCIPdispTime | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
FILE * | file, | ||
SCIP_Real | val, | ||
int | width | ||
) |
displays a time value fitting in a given width
messagehdlr | message handler |
file | output stream |
val | value in seconds to display |
width | width to fit into |
Definition at line 592 of file disp.c.
References MAXTIMEPOWER, REALABS, SCIP_Longint, SCIP_MAXSTRLEN, SCIPmessageFPrintInfo(), and SCIPsnprintf().
Referenced by SCIP_DECL_DISPOUTPUT().
SCIP_RETCODE SCIPincludeDisp | ( | SCIP * | scip, |
const char * | name, | ||
const char * | desc, | ||
const char * | header, | ||
SCIP_DISPSTATUS | dispstatus, | ||
SCIP_DECL_DISPCOPY((*dispcopy)) | , | ||
SCIP_DECL_DISPFREE((*dispfree)) | , | ||
SCIP_DECL_DISPINIT((*dispinit)) | , | ||
SCIP_DECL_DISPEXIT((*dispexit)) | , | ||
SCIP_DECL_DISPINITSOL((*dispinitsol)) | , | ||
SCIP_DECL_DISPEXITSOL((*dispexitsol)) | , | ||
SCIP_DECL_DISPOUTPUT((*dispoutput)) | , | ||
SCIP_DISPDATA * | dispdata, | ||
int | width, | ||
int | priority, | ||
int | position, | ||
SCIP_Bool | stripline | ||
) |
creates a display column and includes it in SCIP
scip | SCIP data structure |
name | name of display column |
desc | description of display column |
header | head line of display column |
dispstatus | display activation status of display column |
dispdata | display column data |
width | width of display column (no. of chars used) |
priority | priority of display column |
position | relative position of display column |
stripline | should the column be separated with a line from its right neighbor? |
Definition at line 9351 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::messagehdlr, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPdispCreate(), SCIPerrorMessage, SCIPfindDisp(), SCIPsetIncludeDisp(), Scip::set, SCIP_Mem::setmem, and TRUE.
Referenced by includeConshdlrCountsols(), SCIPincludeDispDefault(), SCIPincludeEventHdlrSolvingphase(), and SCIPincludeObjDisp().
returns the display column of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of display column |
Definition at line 9393 of file scip.c.
References SCIPsetFindDisp(), and Scip::set.
Referenced by SCIP_DECL_DISPCOPY(), SCIPfindObjDisp(), SCIPincludeDisp(), and SCIPincludeDispDefault().
returns the array of currently available display columns
scip | SCIP data structure |
Definition at line 9406 of file scip.c.
References SCIP_Set::disps, and Scip::set.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
int SCIPgetNDisps | ( | SCIP * | scip | ) |
returns the number of currently available display columns
scip | SCIP data structure |
Definition at line 9417 of file scip.c.
References SCIP_Set::ndisps, and Scip::set.
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPincludeDialogDefaultFix(), and SCIPincludeDialogDefaultSet().
SCIP_RETCODE SCIPautoselectDisps | ( | SCIP * | scip | ) |
automatically selects display columns for being shown w.r.t. the display width parameter
scip | SCIP data structure |
Definition at line 9428 of file scip.c.
References SCIP_CALL, SCIP_OKAY, SCIPdispAutoActivate(), and Scip::set.
Referenced by SCIP_DECL_PARAMCHGD(), and SCIPsyncstoreInit().
void SCIPchgDispMode | ( | SCIP_DISP * | disp, |
SCIP_DISPMODE | mode | ||
) |
changes the display column mode
disp | display column |
mode | the display column mode |
Definition at line 9441 of file scip.c.
References SCIPdispChgMode().
Referenced by SCIPincludeDispDefault().