Detailed Description
C++ wrapper for dialogs.
This class defines the interface for dialogs implemented in C++. Note that there is a pure virtual function (this function has to be implemented). This function is: scip_exec().
Definition at line 54 of file objdialog.h.
C++ wrapper for dialogs. More...
#include <objdialog.h>
Public Member Functions | |
ObjDialog (SCIP *scip, const char *name, const char *desc, SCIP_Bool issubmenu) | |
ObjDialog (const ObjDialog &o) | |
ObjDialog (ObjDialog &&o) | |
virtual | ~ObjDialog () |
ObjDialog & | operator= (const ObjDialog &o)=delete |
ObjDialog & | operator= (ObjDialog &&o)=delete |
virtual | SCIP_DECL_DIALOGFREE (scip_free) |
virtual | SCIP_DECL_DIALOGDESC (scip_desc) |
virtual | SCIP_DECL_DIALOGEXEC (scip_exec)=0 |
Public Member Functions inherited from scip::ObjCloneable | |
virtual | ~ObjCloneable () |
ObjCloneable & | operator= (const ObjCloneable &o)=delete |
ObjCloneable & | operator= (ObjCloneable &&o)=delete |
virtual | SCIP_DECL_OBJCLONEABLECLONE (ObjCloneable *clone) |
virtual | SCIP_DECL_OBJCLONEABLEISCLONEABLE (iscloneable) |
Data Fields | |
SCIP * | scip_ |
char * | scip_name_ |
char * | scip_desc_ |
const SCIP_Bool | scip_issubmenu_ |
Constructor & Destructor Documentation
◆ ObjDialog() [1/3]
|
inline |
default constructor
- Parameters
-
scip SCIP data structure name name of the dialog desc description of the dialog issubmenu default for whether the dialog is a menu
Definition at line 72 of file objdialog.h.
References SCIP_CALL_ABORT, and SCIPduplicateMemoryArray.
◆ ObjDialog() [2/3]
|
inline |
copy constructor
Definition at line 89 of file objdialog.h.
◆ ObjDialog() [3/3]
|
inline |
move constructor
Definition at line 92 of file objdialog.h.
◆ ~ObjDialog()
|
inlinevirtual |
destructor
Definition at line 99 of file objdialog.h.
References operator=(), and SCIPfreeMemoryArray.
Member Function Documentation
◆ operator=() [1/2]
assignment of polymorphic classes causes slicing and is therefore disabled.
Referenced by ~ObjDialog().
◆ operator=() [2/2]
assignment of polymorphic classes causes slicing and is therefore disabled.
◆ SCIP_DECL_DIALOGFREE()
|
inlinevirtual |
destructor of dialog to free user data (called when SCIP is exiting)
- See also
- SCIP_DECL_DIALOGFREE(x) in type_dialog.h
Definition at line 117 of file objdialog.h.
References SCIP_OKAY.
◆ SCIP_DECL_DIALOGDESC()
|
inlinevirtual |
description output method of dialog
- See also
- SCIP_DECL_DIALOGDESC(x) in type_dialog.h
Definition at line 126 of file objdialog.h.
References SCIP_Bool, SCIP_DECL_DIALOGEXEC(), SCIP_OKAY, SCIPdialogMessage(), and SCIPincludeObjDialog().
◆ SCIP_DECL_DIALOGEXEC()
|
pure virtual |
execution method of dialog
- See also
- SCIP_DECL_DIALOGEXEC(x) in type_dialog.h
Referenced by SCIP_DECL_DIALOGDESC().
Field Documentation
◆ scip_
SCIP* scip::ObjDialog::scip_ |
SCIP data structure
Definition at line 60 of file objdialog.h.
◆ scip_name_
char* scip::ObjDialog::scip_name_ |
◆ scip_desc_
char* scip::ObjDialog::scip_desc_ |
description of the dialog
Definition at line 66 of file objdialog.h.
Referenced by SCIPincludeObjDialog().
◆ scip_issubmenu_
const SCIP_Bool scip::ObjDialog::scip_issubmenu_ |
default for whether the dialog is a menu
Definition at line 69 of file objdialog.h.
Referenced by SCIPincludeObjDialog().