Test::Int::Arithmetic::PowXY Class Reference
[Arithmetic constraints]
Test for power constraint More...
Public Member Functions | |
PowXY (const std::string &s, int n0, const Gecode::IntSet &d, Gecode::IntPropLevel ipl) | |
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 | n |
The exponent. |
Detailed Description
Test for power constraint
Definition at line 230 of file arithmetic.cpp.
Constructor & Destructor Documentation
Test::Int::Arithmetic::PowXY::PowXY | ( | const std::string & | s, | |
int | n0, | |||
const Gecode::IntSet & | d, | |||
Gecode::IntPropLevel | ipl | |||
) | [inline] |
Create and register test.
Definition at line 236 of file arithmetic.cpp.
Member Function Documentation
virtual bool Test::Int::Arithmetic::PowXY::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Test whether x is solution
Implements Test::Int::Test.
Definition at line 241 of file arithmetic.cpp.
virtual void Test::Int::Arithmetic::PowXY::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Member Data Documentation
int Test::Int::Arithmetic::PowXY::n [protected] |
The exponent.
Definition at line 233 of file arithmetic.cpp.
The documentation for this class was generated from the following file:
- test/int/arithmetic.cpp (Revision: 15468)