Gecode::Int::Distinct::CombPtrFlag< T > Class Template Reference
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 50 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
template<class T>
| Gecode::Int::Distinct::CombPtrFlag< T >::CombPtrFlag | ( | T * | p1, | |
| T * | p2 | |||
| ) | [inline] |
Member Function Documentation
template<class T>
| void Gecode::Int::Distinct::CombPtrFlag< T >::init | ( | T * | p1, | |
| T * | p2 | |||
| ) | [inline] |
template<class T>
| T * Gecode::Int::Distinct::CombPtrFlag< T >::ptr | ( | T * | p | ) | const [inline] |
template<class T>
| int Gecode::Int::Distinct::CombPtrFlag< T >::is_set | ( | void | ) | const [inline] |
template<class T>
| void Gecode::Int::Distinct::CombPtrFlag< T >::set | ( | void | ) | [inline] |
template<class T>
| void Gecode::Int::Distinct::CombPtrFlag< T >::unset | ( | void | ) | [inline] |
The documentation for this class was generated from the following files:
- gecode/int/distinct/dom.icc (Revision: 7359)
- gecode/int/distinct/combptr.icc (Revision: 4790)
