Generated on Sat Feb 7 2015 02:01:33 for Gecode by doxygen 1.8.9.1
array.cpp File Reference

(Revision: 12455)

#include <gecode/kernel.hh>
#include <gecode/int.hh>
#include "test/test.hh"

Go to the source code of this file.

Classes

class  Test::Array::Iterator
 Base class for testing iterators More...
 
class  Test::Array::TestSpace
 Test space. More...
 
class  Test::Array::VarArrayIterator
 Class for testing the VarArray iterator More...
 
class  Test::Array::VarArgsIterator
 Class for testing the VarArgs iterator More...
 
class  Test::Array::ViewArrayIterator
 Class for testing the ViewArray iterator More...
 
class  Test::Array::SharedArrayIterator
 Class for testing the SharedArray iterator More...
 

Namespaces

 Test
 General test support.
 
 Test::Array
 Tests for arrays.
 

Macros

#define CHECK_TEST(T, M)
 Check the test result and handle failed test. More...
 
#define START_TEST(T)
 Start new test. More...
 

Variables

Test::Array::VarArrayIterator Test::Array::varArrayIteratorTest
 
Test::Array::VarArgsIterator Test::Array::varArgsIteratorTest
 
Test::Array::ViewArrayIterator Test::Array::viewArrayIteratorTest
 
Test::Array::SharedArrayIterator Test::Array::sharedArrayIteratorTest
 

Macro Definition Documentation

#define CHECK_TEST (   T,
 
)
Value:
if (opt.log) \
olog << ind(3) << "Check: " << (M) << std::endl; \
if (!(T)) { \
problem = (M); goto failed; \
}
Options opt
The options.
Definition: test.cpp:101
bool log
Whether to log the tests.
Definition: test.hh:95
std::ostringstream olog
Stream used for logging.
Definition: test.cpp:57

Check the test result and handle failed test.

Definition at line 44 of file array.cpp.

#define START_TEST (   T)
Value:
if (opt.log) { \
olog.str(""); \
olog << ind(2) << "Testing: " << (T) << std::endl; \
} \
test = (T);
Options opt
The options.
Definition: test.cpp:101
bool log
Whether to log the tests.
Definition: test.hh:95
std::ostringstream olog
Stream used for logging.
Definition: test.cpp:57

Start new test.

Definition at line 52 of file array.cpp.