
Options for scripts with additional instance parameter More...
#include <driver.hh>
Public Member Functions | |
| InstanceOptions (const char *s) | |
| Initialize options for script with name s. | |
| virtual void | help (void) |
| Print help text. | |
| void | parse (int &argc, char *argv[]) |
| Parse options from arguments argv (number is argc) | |
| void | instance (const char *s) |
| Set default instance name. | |
| const char * | instance (void) const |
| Return instance name. | |
| ~InstanceOptions (void) | |
| Destructor. | |
Public Member Functions inherited from Gecode::Options | |
| Options (const char *s) | |
| Initialize options for script with name s. | |
| void | model (int v) |
| Set default model value. | |
| void | model (int v, const char *o, const char *h=NULL) |
| Add model option value for value v, string o, and help h. | |
| int | model (void) const |
| Return model value. | |
| void | symmetry (int v) |
| Set default symmetry value. | |
| void | symmetry (int v, const char *o, const char *h=NULL) |
| Add symmetry option value for value v, string o, and help h. | |
| int | symmetry (void) const |
| Return symmetry value. | |
| void | propagation (int v) |
| Set default propagation value. | |
| void | propagation (int v, const char *o, const char *h=NULL) |
| Add propagation option value for value v, string o, and help h. | |
| int | propagation (void) const |
| Return propagation value. | |
| void | icl (IntConLevel i) |
| Set default integer consistency level. | |
| IntConLevel | icl (void) const |
| Return integer consistency level. | |
| void | branching (int v) |
| Set default branching value. | |
| void | branching (int v, const char *o, const char *h=NULL) |
| Add branching option value for value v, string o, and help h. | |
| int | branching (void) const |
| Return branching value. | |
| void | search (int v) |
| Set default search value. | |
| void | search (int v, const char *o, const char *h=NULL) |
| Add search option value for value v, string o, and help h. | |
| int | search (void) const |
| Return search value. | |
| void | solutions (unsigned int n) |
| Set default number of solutions to search for. | |
| unsigned int | solutions (void) const |
| Return number of solutions to search for. | |
| void | threads (double n) |
| Set number of parallel threads. | |
| double | threads (void) const |
| Return number of parallel threads. | |
| void | c_d (unsigned int d) |
| Set default copy recomputation distance. | |
| unsigned int | c_d (void) const |
| Return copy recomputation distance. | |
| void | a_d (unsigned int d) |
| Set default adaptive recomputation distance. | |
| unsigned int | a_d (void) const |
| Return adaptive recomputation distance. | |
| void | node (unsigned int n) |
| Set default node cutoff. | |
| unsigned int | node (void) const |
| Return node cutoff. | |
| void | fail (unsigned int n) |
| Set default failure cutoff. | |
| unsigned int | fail (void) const |
| Return failure cutoff. | |
| void | time (unsigned int t) |
| Set default time cutoff. | |
| unsigned int | time (void) const |
| Return time cutoff. | |
| void | interrupt (bool b) |
| Set default interrupt behavior. | |
| bool | interrupt (void) const |
| Return interrupt behavior. | |
| void | mode (ScriptMode em) |
| Set default mode. | |
| ScriptMode | mode (void) const |
| Return mode. | |
| void | iterations (unsigned int i) |
| Set default number of iterations. | |
| unsigned int | iterations (void) const |
| Return number of iterations. | |
| void | samples (unsigned int s) |
| Set default number of samples. | |
| unsigned int | samples (void) const |
| Return number of samples. | |
Public Member Functions inherited from Gecode::BaseOptions | |
| BaseOptions (const char *s) | |
| Initialize options for script with name s. | |
| void | add (Driver::BaseOption &o) |
| Add new option o. | |
| const char * | name (void) const |
| Return name of script. | |
| void | name (const char *) |
| Set name of script. | |
| virtual | ~BaseOptions (void) |
| Destructor. | |
| Gecode::InstanceOptions::InstanceOptions | ( | const char * | s | ) |
Initialize options for script with name s.
Definition at line 405 of file options.cpp.
| Gecode::InstanceOptions::~InstanceOptions | ( | void | ) |
Destructor.
Definition at line 429 of file options.cpp.
|
virtual |
Print help text.
Reimplemented from Gecode::BaseOptions.
Definition at line 415 of file options.cpp.
| void Gecode::InstanceOptions::parse | ( | int & | argc, |
| char * | argv[] | ||
| ) |
Parse options from arguments argv (number is argc)
Reimplemented from Gecode::BaseOptions.
Definition at line 422 of file options.cpp.
| void Gecode::InstanceOptions::instance | ( | const char * | s | ) |
Set default instance name.
Definition at line 409 of file options.cpp.
|
inline |
Return instance name.
Definition at line 412 of file options.hpp.
|
protected |