Test::Int::Arithmetic::ArgMaxBool Class Reference
[Arithmetic constraints]
Test for Boolean argument maximum constraint More...
Public Member Functions | |
ArgMaxBool (int n, int o, 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 | |
int | offset |
Offset to be used. | |
bool | tiebreak |
Whether to use tie-breaking. |
Detailed Description
Test for Boolean argument maximum constraint
Definition at line 898 of file arithmetic.cpp.
Constructor & Destructor Documentation
Test::Int::Arithmetic::ArgMaxBool::ArgMaxBool | ( | int | n, | |
int | o, | |||
bool | tb | |||
) | [inline] |
Create and register test.
Definition at line 906 of file arithmetic.cpp.
Member Function Documentation
virtual bool Test::Int::Arithmetic::ArgMaxBool::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Test whether x is solution
Implements Test::Int::Test.
Definition at line 912 of file arithmetic.cpp.
virtual void Test::Int::Arithmetic::ArgMaxBool::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Member Data Documentation
int Test::Int::Arithmetic::ArgMaxBool::offset [protected] |
Offset to be used.
Definition at line 901 of file arithmetic.cpp.
bool Test::Int::Arithmetic::ArgMaxBool::tiebreak [protected] |
Whether to use tie-breaking.
Definition at line 903 of file arithmetic.cpp.
The documentation for this class was generated from the following file:
- test/int/arithmetic.cpp