Gecode::Int::Distinct::CombPtrFlag< T > Class Template Reference
List of all members.Detailed Description
template<class T>
class Gecode::Int::Distinct::CombPtrFlag< T >
Class for combining two pointers with a flag.
When one pointer is given, this other can be retrieved.
Definition at line 39 of file dom.icc.
Public Member Functions | |
| CombPtrFlag (T *p1, T *p2) | |
| Initialize with pointer p1 and p2. | |
| void | init (T *p1, T *p2) |
| Initialize with pointer p1 and p2. | |
| T * | ptr (T *p) const |
| Return the other pointer when p is given. | |
| int | is_set (void) const |
| Check whether flag is set. | |
| void | set (void) |
| Set flag. | |
| void | unset (void) |
| Clear flag. | |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Initialize with pointer p1 and p2.
Definition at line 26 of file combptr.icc. |
Member Function Documentation
|
||||||||||||||||
|
Initialize with pointer p1 and p2.
Definition at line 55 of file combptr.icc. |
|
||||||||||
|
Return the other pointer when p is given.
Definition at line 31 of file combptr.icc. |
|
||||||||||
|
Check whether flag is set.
Definition at line 37 of file combptr.icc. |
|
||||||||||
|
Set flag.
Definition at line 43 of file combptr.icc. |
|
||||||||||
|
Clear flag.
Definition at line 49 of file combptr.icc. |
The documentation for this class was generated from the following files:
- gecode/int/distinct/dom.icc (Revision: 3768)
- gecode/int/distinct/combptr.icc (Revision: 2076)
