Test::Base Class Reference
[General test support]
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. | |
Detailed Description
Base class for all tests to be run
Definition at line 103 of file test.hh.
Constructor & Destructor Documentation
| Test::Base::Base | ( | const std::string & | s | ) |
Member Function Documentation
| void Test::Base::sort | ( | void | ) | [static] |
| 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::AFC, Test::Array::VarArrayIterator, Test::Array::VarArgsIterator, Test::Array::ViewArrayIterator, Test::Array::SharedArrayIterator, Test::Assign::IntTest, Test::Assign::BoolTest, Test::Assign::SetTest, Test::Assign::FloatTest, Test::Branch::IntTest, Test::Branch::BoolTest, Test::Branch::SetTest, Test::Branch::FloatTest, Test::FlatZinc::FlatZincTest, Test::Float::Test, Test::Int::BinPacking::CliqueMBPT, Test::Int::Distinct::Pathological, Test::Int::Test, Test::LDSB::LDSB< T >, Test::LDSB::LDSBSet< T >, Test::LDSB::LDSBLatin, Test::NoGoods::NoGoods< Model, ValBranch >, Test::Region, Test::Search::DFS< Model >, Test::Search::LDS< Model >, Test::Search::BAB< Model >, Test::Search::RBS< Model, Engine >, Test::Search::PBS< Model, Engine >, Test::Search::SEBPBS< Model >, 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:
