Generated on Sat Feb 7 2015 02:01:53 for Gecode by doxygen 1.8.9.1
Test::FlatZinc::FlatZincTest Class Reference

Base class for tests for FlatZinc More...

#include <flatzinc.hh>

Public Member Functions

 FlatZincTest (const std::string &name, const std::string &source, const std::string &expected, bool allSolutions=false)
 Construct and register test. More...
 
virtual bool run (void)
 Perform test. More...
 
- Public Member Functions inherited from Test::Base
 Base (const std::string &s)
 Create and register test with name s. More...
 
const std::string & name (void) const
 Return name of test. More...
 
Basenext (void) const
 Return next test. More...
 
void next (Base *n)
 Set next test. More...
 
virtual ~Base (void)
 Destructor. More...
 

Protected Attributes

std::string _name
 
std::string _source
 
std::string _expected
 
bool _allSolutions
 

Additional Inherited Members

- Static Public Member Functions inherited from Test::Base
static void sort (void)
 Sort tests alphabetically. More...
 
static Basetests (void)
 Return all tests. More...
 
static bool fixpoint (void)
 Throw a coin whether to compute a fixpoint. More...
 
- Static Public Attributes inherited from Test::Base
static Gecode::Support::RandomGenerator rand = Gecode::Support::RandomGenerator()
 Random number generator. More...
 

Detailed Description

Base class for tests for FlatZinc

Definition at line 55 of file flatzinc.hh.

Constructor & Destructor Documentation

Test::FlatZinc::FlatZincTest::FlatZincTest ( const std::string &  name,
const std::string &  source,
const std::string &  expected,
bool  allSolutions = false 
)

Construct and register test.

Definition at line 42 of file flatzinc.cpp.

Member Function Documentation

bool Test::FlatZinc::FlatZincTest::run ( void  )
virtual

Perform test.

Implements Test::Base.

Definition at line 48 of file flatzinc.cpp.

Member Data Documentation

std::string Test::FlatZinc::FlatZincTest::_name
protected

Definition at line 57 of file flatzinc.hh.

std::string Test::FlatZinc::FlatZincTest::_source
protected

Definition at line 58 of file flatzinc.hh.

std::string Test::FlatZinc::FlatZincTest::_expected
protected

Definition at line 59 of file flatzinc.hh.

bool Test::FlatZinc::FlatZincTest::_allSolutions
protected

Definition at line 60 of file flatzinc.hh.


The documentation for this class was generated from the following files: