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