Base class for search tests More...
Public Member Functions | |
Test (const std::string &s, HowToBranch _htb1, HowToBranch _htb2, HowToBranch _htb3, HowToConstrain _htc=HTC_NONE) | |
Initialize test. More... | |
![]() | |
Base (const std::string &s) | |
Create and register test with name s. More... | |
const std::string & | name (void) const |
Return name of test. More... | |
Base * | next (void) const |
Return next test. More... | |
void | next (Base *n) |
Set next test. More... | |
virtual bool | run (void)=0 |
Run test. More... | |
virtual | ~Base (void) |
Destructor. More... | |
Static Public Member Functions | |
static std::string | str (unsigned int i) |
Map unsigned integer to string. More... | |
static std::string | str (HowToBranch htb) |
Map branching to string. More... | |
static std::string | str (HowToConstrain htc) |
Map constrain to string. More... | |
![]() | |
static void | sort (void) |
Sort tests alphabetically. More... | |
static Base * | tests (void) |
Return all tests. More... | |
static bool | fixpoint (void) |
Throw a coin whether to compute a fixpoint. More... | |
Public Attributes | |
HowToBranch | htb1 |
How to branch. More... | |
HowToBranch | htb2 |
HowToBranch | htb3 |
HowToConstrain | htc |
How to constrain. More... | |
Additional Inherited Members | |
![]() | |
static Gecode::Support::RandomGenerator | rand = Gecode::Support::RandomGenerator() |
Random number generator. More... | |
![]() | |
int | main (int argc, char *argv[]) |
Main function. More... | |
Base class for search tests
Definition at line 302 of file search.cpp.
|
inline |
Initialize test.
Definition at line 340 of file search.cpp.
|
inlinestatic |
Map unsigned integer to string.
Definition at line 309 of file search.cpp.
|
inlinestatic |
Map branching to string.
Definition at line 315 of file search.cpp.
|
inlinestatic |
Map constrain to string.
Definition at line 327 of file search.cpp.
HowToBranch Test::Search::Test::htb1 |
How to branch.
Definition at line 305 of file search.cpp.
HowToBranch Test::Search::Test::htb2 |
Definition at line 305 of file search.cpp.
HowToBranch Test::Search::Test::htb3 |
Definition at line 305 of file search.cpp.
HowToConstrain Test::Search::Test::htc |
How to constrain.
Definition at line 307 of file search.cpp.