Test::Base Class Reference
[General test support]
#include <test.hh>
Inherited by Test::Assign::BoolTest, Test::Assign::IntTest, Test::Branch::BoolTest, Test::Branch::CpltSetTest, Test::Branch::IntTest, Test::Branch::SetTest, Test::CpltSet::CpltSetTest, Test::Int::Distinct::Pathological, Test::Int::Test, Test::Search::Test, and Test::Set::SetTest.
Detailed Description
Base class for all tests to be run.Definition at line 127 of file 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. | |
virtual bool | run (void)=0 |
Run test. | |
virtual | ~Base (void) |
Destructor. | |
Static Public Member Functions | |
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. |
Constructor & Destructor Documentation
Test::Base::Base | ( | const std::string & | s | ) |
Member Function Documentation
const std::string & Test::Base::name | ( | void | ) | const [inline] |
Base * Test::Base::tests | ( | void | ) | [inline, static] |
Base * Test::Base::next | ( | void | ) | const [inline] |
virtual bool Test::Base::run | ( | void | ) | [pure virtual] |
Run test.
Implemented in Test::Assign::IntTest, Test::Assign::BoolTest, Test::Branch::IntTest, Test::Branch::BoolTest, Test::Branch::SetTest, Test::Branch::CpltSetTest, Test::CpltSet::CpltSetTest, Test::Int::Distinct::Pathological, Test::Int::Test, Test::Search::DFS< Model >, Test::Search::LDS< Model >, Test::Search::Best< Model, Engine >, and Test::Set::SetTest.
bool Test::Base::fixpoint | ( | void | ) | [inline, static] |
Member Data Documentation
The documentation for this class was generated from the following files: