Test::Int::Arithmetic::ArgMaxBoolShared Class Reference
[Arithmetic constraints]
Test for argument maximum constraint with shared variables More...
Public Member Functions | |
ArgMaxBoolShared (int n, bool tb) | |
Create and register test. | |
virtual bool | solution (const Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post constraint on x. | |
Protected Attributes | |
bool | tiebreak |
Whether to use tie-breaking. |
Detailed Description
Test for argument maximum constraint with shared variables
Definition at line 939 of file arithmetic.cpp.
Constructor & Destructor Documentation
Test::Int::Arithmetic::ArgMaxBoolShared::ArgMaxBoolShared | ( | int | n, | |
bool | tb | |||
) | [inline] |
Create and register test.
Definition at line 945 of file arithmetic.cpp.
Member Function Documentation
virtual bool Test::Int::Arithmetic::ArgMaxBoolShared::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Test whether x is solution
Implements Test::Int::Test.
Definition at line 952 of file arithmetic.cpp.
virtual void Test::Int::Arithmetic::ArgMaxBoolShared::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Member Data Documentation
bool Test::Int::Arithmetic::ArgMaxBoolShared::tiebreak [protected] |
Whether to use tie-breaking.
Definition at line 942 of file arithmetic.cpp.
The documentation for this class was generated from the following file:
- test/int/arithmetic.cpp