Generated on Wed Jul 27 2011 15:08:56 for Gecode by doxygen 1.7.4
array.cpp File Reference

(Revision: 11570)

#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::Iterator
 Base class for testing iterators More...
class  Test::Array::Iterator::TestSpace
 Test space. More...
class  Test::Array::Iterator::VarArrayIterator
 Class for testing the VarArray iterator More...
class  Test::Array::Iterator::VarArgsIterator
 Class for testing the VarArgs iterator More...
class  Test::Array::Iterator::ViewArrayIterator
 Class for testing the ViewArray iterator More...
class  Test::Array::Iterator::SharedArrayIterator
 Class for testing the SharedArray iterator More...

Namespaces

namespace  Test
 

General test support.


namespace  Test::Array
namespace  Test::Array::Iterator

Defines

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

Variables

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

Define Documentation

#define CHECK_TEST (   T,
 
)
Value:
if (opt.log)                                                    \
  olog << ind(3) << "Check: " << (M) << std::endl;              \
if (!(T)) {                                                     \
  problem = (M); goto failed;                         \
}

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);

Start new test.

Definition at line 52 of file array.cpp.