Trace flag option.
More...
#include <driver.hh>
|
| TraceOption (int f=0) |
| Initialize with no tracing.
|
|
void | value (int f) |
| Set default trace flags to f.
|
|
int | value (void) const |
| Return current option value.
|
|
virtual int | parse (int argc, char *argv[]) |
| Parse option at first position and return number of parsed arguments.
|
|
virtual void | help (void) |
| Print help text.
|
|
| BaseOption (const char *o, const char *e) |
| Initialize for option o and explanation e.
|
|
virtual | ~BaseOption (void) |
| Destructor.
|
|
|
int | cur |
| Current value.
|
|
const char * | eopt |
| String for option (excluding hyphen)
|
|
const char * | iopt |
| String for option (including hyphen)
|
|
const char * | exp |
| Short explanation.
|
|
BaseOption * | next |
| Next option Check for option and return its argument.
|
|
|
static char * | strdup (const char *s) |
| Create heap-allocated copy of string s.
|
|
static char * | stredup (const char *s) |
| Create heap-allocated copy of string s with hyphen added.
|
|
static void | strdel (const char *s) |
| Delete heap-allocated copy of string s.
|
|
char * | argument (int argc, char *argv[]) const |
|
Trace flag option.
Definition at line 309 of file driver.hh.
◆ TraceOption()
Gecode::Driver::TraceOption::TraceOption |
( |
int | f = 0 | ) |
|
Initialize with no tracing.
Definition at line 353 of file options.cpp.
◆ value() [1/2]
void Gecode::Driver::TraceOption::value |
( |
int | f | ) |
|
|
inline |
◆ value() [2/2]
int Gecode::Driver::TraceOption::value |
( |
void | | ) |
const |
|
inline |
Return current option value.
Definition at line 155 of file options.hpp.
◆ parse()
int Gecode::Driver::TraceOption::parse |
( |
int | argc, |
|
|
char * | argv[] ) |
|
virtual |
◆ help()
void Gecode::Driver::TraceOption::help |
( |
void | | ) |
|
|
virtual |
◆ cur
int Gecode::Driver::TraceOption::cur |
|
protected |
The documentation for this class was generated from the following files: