Test::Int::NoOverlap::IntOpt2 Class Reference
[No-overlap constraints]
Test for no-overlap with optional rectangles More...
Public Member Functions | |
IntOpt2 (int m, const Gecode::IntArgs &w0, const Gecode::IntArgs &h0) | |
Create and register test with maximal value m and n rectangles. | |
virtual bool | solution (const Assignment &xyo) const |
Test whether xyo is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &xyo) |
Post constraint on xwyho. | |
Protected Attributes | |
Gecode::IntArgs | w |
Width. | |
Gecode::IntArgs | h |
Height. |
Detailed Description
Test for no-overlap with optional rectangles
Definition at line 93 of file no-overlap.cpp.
Constructor & Destructor Documentation
Test::Int::NoOverlap::IntOpt2::IntOpt2 | ( | int | m, | |
const Gecode::IntArgs & | w0, | |||
const Gecode::IntArgs & | h0 | |||
) | [inline] |
Create and register test with maximal value m and n rectangles.
Definition at line 101 of file no-overlap.cpp.
Member Function Documentation
virtual bool Test::Int::NoOverlap::IntOpt2::solution | ( | const Assignment & | xyo | ) | const [inline, virtual] |
Test whether xyo is solution
Implements Test::Int::Test.
Definition at line 105 of file no-overlap.cpp.
virtual void Test::Int::NoOverlap::IntOpt2::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | xyo | |||
) | [inline, virtual] |
Post constraint on xwyho.
Implements Test::Int::Test.
Definition at line 122 of file no-overlap.cpp.
Member Data Documentation
Gecode::IntArgs Test::Int::NoOverlap::IntOpt2::w [protected] |
Width.
Definition at line 96 of file no-overlap.cpp.
Gecode::IntArgs Test::Int::NoOverlap::IntOpt2::h [protected] |
Height.
Definition at line 98 of file no-overlap.cpp.
The documentation for this class was generated from the following file:
- test/int/no-overlap.cpp (Revision: 12192)