SteelMillOptions Class Reference
SteelMillOptions for examples with size option and an additional optional file name parameter. More...
Public Member Functions | |
SteelMillOptions (const char *n) | |
Initialize options for example with name n. | |
virtual void | help (void) |
Print help text. | |
bool | parse (int &argc, char *argv[]) |
Parse options from arguments argv (number is argc). | |
unsigned int | size (void) const |
Return size. | |
int * | capacities (void) const |
Return capacities. | |
int | ncapacities (void) const |
Return number of capacities. | |
int | maxcapacity (void) const |
Return maximum of capacities. | |
int * | loss (void) const |
Return loss values. | |
order_t | orders (void) const |
Return orders. | |
int | ncolors (void) const |
Return number of colors. | |
int | norders (void) const |
Return number of orders. |
Detailed Description
SteelMillOptions for examples with size option and an additional optional file name parameter.
Used in the SteelMill example.
Definition at line 77 of file steel-mill.cpp.
Constructor & Destructor Documentation
SteelMillOptions::SteelMillOptions | ( | const char * | n | ) | [inline] |
Initialize options for example with name n.
Definition at line 89 of file steel-mill.cpp.
Member Function Documentation
void SteelMillOptions::help | ( | void | ) | [virtual] |
Print help text.
Reimplemented from Gecode::BaseOptions.
Definition at line 446 of file steel-mill.cpp.
bool SteelMillOptions::parse | ( | int & | argc, | |
char * | argv[] | |||
) |
Parse options from arguments argv (number is argc).
Reimplemented from Gecode::BaseOptions.
Definition at line 459 of file steel-mill.cpp.
unsigned int SteelMillOptions::size | ( | void | ) | const [inline] |
Return size.
Definition at line 101 of file steel-mill.cpp.
int* SteelMillOptions::capacities | ( | void | ) | const [inline] |
Return capacities.
Definition at line 103 of file steel-mill.cpp.
int SteelMillOptions::ncapacities | ( | void | ) | const [inline] |
Return number of capacities.
Definition at line 105 of file steel-mill.cpp.
int SteelMillOptions::maxcapacity | ( | void | ) | const [inline] |
Return maximum of capacities.
Definition at line 107 of file steel-mill.cpp.
int* SteelMillOptions::loss | ( | void | ) | const [inline] |
Return loss values.
Definition at line 109 of file steel-mill.cpp.
order_t SteelMillOptions::orders | ( | void | ) | const [inline] |
Return orders.
Definition at line 111 of file steel-mill.cpp.
int SteelMillOptions::ncolors | ( | void | ) | const [inline] |
Return number of colors.
Definition at line 113 of file steel-mill.cpp.
int SteelMillOptions::norders | ( | void | ) | const [inline] |
Return number of orders.
Definition at line 115 of file steel-mill.cpp.
The documentation for this class was generated from the following file:
- examples/steel-mill.cpp (Revision: 12001)