
Class for combining two pointers with a flag. More...
#include <view-val-graph.hh>
Public Member Functions | |
| CombPtrFlag (T *p1, T *p2) | |
| Initialize with pointer p1 and p2. More... | |
| void | init (T *p1, T *p2) |
| Initialize with pointer p1 and p2. More... | |
| T * | ptr (T *p) const |
| Return the other pointer when p is given. More... | |
| int | is_set (void) const |
| Check whether flag is set. More... | |
| void | set (void) |
| Set flag. More... | |
| void | unset (void) |
| Clear flag. More... | |
Class for combining two pointers with a flag.
When one pointer is given, the other can be retrieved.
Definition at line 58 of file view-val-graph.hh.
|
inline |
Initialize with pointer p1 and p2.
Definition at line 42 of file comb-ptr-flag.hpp.
|
inline |
Initialize with pointer p1 and p2.
Definition at line 71 of file comb-ptr-flag.hpp.
|
inline |
Return the other pointer when p is given.
Definition at line 47 of file comb-ptr-flag.hpp.
|
inline |
Check whether flag is set.
Definition at line 53 of file comb-ptr-flag.hpp.
|
inline |
Set flag.
Definition at line 59 of file comb-ptr-flag.hpp.
|
inline |
Clear flag.
Definition at line 65 of file comb-ptr-flag.hpp.