Test::Int::NoOverlap::Int2 Class Reference
[No-overlap constraints]
Test for no-overlap with integer dimensions (rectangles) More...
Public Member Functions | |
Int2 (int m, const Gecode::IntArgs &w0, const Gecode::IntArgs &h0) | |
Create and register test with maximal coordinate value m. | |
virtual bool | solution (const Assignment &xy) const |
Test whether xy is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &xy) |
Post constraint on xy. | |
Protected Attributes | |
Gecode::IntArgs | w |
Width. | |
Gecode::IntArgs | h |
Height. |
Detailed Description
Test for no-overlap with integer dimensions (rectangles)
Definition at line 50 of file no-overlap.cpp.
Constructor & Destructor Documentation
Test::Int::NoOverlap::Int2::Int2 | ( | int | m, | |
const Gecode::IntArgs & | w0, | |||
const Gecode::IntArgs & | h0 | |||
) | [inline] |
Create and register test with maximal coordinate value m.
Definition at line 58 of file no-overlap.cpp.
Member Function Documentation
virtual bool Test::Int::NoOverlap::Int2::solution | ( | const Assignment & | xy | ) | const [inline, virtual] |
Test whether xy is solution
Implements Test::Int::Test.
Definition at line 64 of file no-overlap.cpp.
virtual void Test::Int::NoOverlap::Int2::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | xy | |||
) | [inline, virtual] |
Member Data Documentation
Gecode::IntArgs Test::Int::NoOverlap::Int2::w [protected] |
Width.
Definition at line 53 of file no-overlap.cpp.
Gecode::IntArgs Test::Int::NoOverlap::Int2::h [protected] |
Height.
Definition at line 55 of file no-overlap.cpp.
The documentation for this class was generated from the following file:
- test/int/no-overlap.cpp