Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
Gecode::Int::ViewValGraph::CombPtrFlag< T > Class Template Reference

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.
 
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

template<class T>
class Gecode::Int::ViewValGraph::CombPtrFlag< T >

Class for combining two pointers with a flag.

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

Definition at line 54 of file view-val-graph.hh.

Constructor & Destructor Documentation

◆ CombPtrFlag()

template<class T >
Gecode::Int::ViewValGraph::CombPtrFlag< T >::CombPtrFlag ( T * p1,
T * p2 )
inline

Initialize with pointer p1 and p2.

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

Member Function Documentation

◆ init()

template<class T >
void Gecode::Int::ViewValGraph::CombPtrFlag< T >::init ( T * p1,
T * p2 )
inline

Initialize with pointer p1 and p2.

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

◆ ptr()

template<class T >
T * Gecode::Int::ViewValGraph::CombPtrFlag< T >::ptr ( T * p) const
inline

Return the other pointer when p is given.

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

◆ is_set()

template<class T >
int Gecode::Int::ViewValGraph::CombPtrFlag< T >::is_set ( void ) const
inline

Check whether flag is set.

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

◆ set()

template<class T >
void Gecode::Int::ViewValGraph::CombPtrFlag< T >::set ( void )
inline

Set flag.

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

◆ unset()

template<class T >
void Gecode::Int::ViewValGraph::CombPtrFlag< T >::unset ( void )
inline

Clear flag.

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


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