34namespace Gecode {
namespace Int {
namespace ViewValGraph {
39 : cpf(reinterpret_cast<ptrdiff_t>(p1) ^ reinterpret_cast<ptrdiff_t>(p2)) {}
44 return reinterpret_cast<T*
>((cpf&~1) ^
reinterpret_cast<ptrdiff_t
>(
p));
50 return static_cast<int>(cpf&1);
68 cpf =
reinterpret_cast<ptrdiff_t
>(p1) ^
reinterpret_cast<ptrdiff_t
>(p2);
int p
Number of positive literals for node type.
int is_set(void) const
Check whether flag is set.
void init(T *p1, T *p2)
Initialize with pointer p1 and p2.
CombPtrFlag(T *p1, T *p2)
Initialize with pointer p1 and p2.
T * ptr(T *p) const
Return the other pointer when p is given.
void unset(void)
Clear flag.
Gecode toplevel namespace