Generated on Tue Sep 25 2012 20:53:32 for Gecode by doxygen 1.7.5
Gecode::Int::ViewValGraph::CombPtrFlag Class Reference

Class for combining two pointers with a flag. More...

#include <view-val-graph.hh>

List of all members.

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.

Detailed Description

Class for combining two pointers with a flag.

When one pointer is given, the other can be retrieved.


Constructor & Destructor Documentation

Gecode::Int::ViewValGraph::CombPtrFlag::CombPtrFlag ( T *  p1,
T *  p2 
) [inline]

Initialize with pointer p1 and p2.

Definition at line 42 of file comb-ptr-flag.hpp.


Member Function Documentation

void Gecode::Int::ViewValGraph::CombPtrFlag::init ( T *  p1,
T *  p2 
) [inline]

Initialize with pointer p1 and p2.

Definition at line 71 of file comb-ptr-flag.hpp.

T * Gecode::Int::ViewValGraph::CombPtrFlag::ptr ( T *  p) const [inline]

Return the other pointer when p is given.

Definition at line 47 of file comb-ptr-flag.hpp.

int Gecode::Int::ViewValGraph::CombPtrFlag::is_set ( void  ) const [inline]

Check whether flag is set.

Definition at line 53 of file comb-ptr-flag.hpp.

void Gecode::Int::ViewValGraph::CombPtrFlag::set ( void  ) [inline]

Set flag.

Definition at line 59 of file comb-ptr-flag.hpp.

void Gecode::Int::ViewValGraph::CombPtrFlag::unset ( void  ) [inline]

Clear flag.

Definition at line 65 of file comb-ptr-flag.hpp.


The documentation for this class was generated from the following files: