Base class for all tests to be run More...
#include <test.hh>
Public Member Functions | |
Base (const std::string &s) | |
Create and register test with name s. | |
const std::string & | name (void) const |
Return name of test. | |
Base * | next (void) const |
Return next test. | |
void | next (Base *n) |
Set next test. | |
virtual bool | run (void)=0 |
Run test. | |
virtual | ~Base (void) |
Destructor. |
Static Public Member Functions | |
static void | sort (void) |
Sort tests alphabetically. | |
static Base * | tests (void) |
Return all tests. | |
static bool | fixpoint (void) |
Throw a coin whether to compute a fixpoint. |
Static Public Attributes | |
static Gecode::Support::RandomGenerator | rand = Gecode::Support::RandomGenerator() |
Random number generator. |
Related Symbols | |
(Note that these are not member symbols.) | |
int | main (int argc, char *argv[]) |
Main function. |
Test::Base::Base | ( | const std::string & | s | ) |
|
static |
|
inline |
|
inlinestatic |
|
inline |
|
pure virtual |
Run test.
Implemented in Test::AFC, Test::Array::SharedArrayIterator, Test::Array::VarArgsIterator, Test::Array::VarArrayIterator, Test::Array::ViewArrayIterator, Test::Assign::BoolTest, Test::Assign::FloatTest, Test::Assign::IntTest, Test::Assign::SetTest, Test::Branch::BoolTest, Test::Branch::FloatTest, Test::Branch::IntTest, Test::Branch::SetTest, Test::FlatZinc::FlatZincTest, Test::Float::Test, Test::Int::BinPacking::CliqueMBPT, Test::Int::Distinct::Pathological, Test::Int::Test, Test::LDSB::LDSB< T >, Test::LDSB::LDSBLatin, Test::LDSB::LDSBSet< T >, Test::NoGoods::NoGoods< Model, ValBranch >, Test::Region, Test::Search::BAB< Model >, Test::Search::DFS< Model >, Test::Search::LDS< Model >, Test::Search::PBS< Model, Engine >, Test::Search::RBS< Model, Engine >, Test::Search::SEBPBS< Model >, and Test::Set::SetTest.
|
inlinestatic |
|
static |