Predator  [unstable] git snapshot
Public Member Functions | Protected Types | Protected Attributes
SymPairSet< TKey, IREFLEXIVE > Class Template Reference

a symmetric relation More...

#include <sympred.hh>

Public Member Functions

bool empty () const
bool chk (TKey k1, TKey k2) const
bool add (TKey k1, TKey k2)
bool del (TKey k1, TKey k2)

Protected Types

typedef std::pair< TKey, TKey > TItem
typedef std::set< TItemTCont

Protected Attributes

TCont cont_

Detailed Description

template<class TKey, bool IREFLEXIVE>
class SymPairSet< TKey, IREFLEXIVE >

a symmetric relation

Definition at line 31 of file sympred.hh.

Member Typedef Documentation

typedef std::set<TItem> TCont
protected

Definition at line 34 of file sympred.hh.

typedef std::pair<TKey , TKey > TItem
protected

Definition at line 33 of file sympred.hh.

Member Function Documentation

bool add ( TKey  k1,
TKey  k2 
)
inline

Definition at line 48 of file sympred.hh.

References CL_BREAK_IF, SymPairSet< TKey, IREFLEXIVE >::cont_, and sortValues().

bool chk ( TKey  k1,
TKey  k2 
) const
inline

Definition at line 42 of file sympred.hh.

References SymPairSet< TKey, IREFLEXIVE >::cont_, hasKey(), and sortValues().

bool del ( TKey  k1,
TKey  k2 
)
inline

Definition at line 56 of file sympred.hh.

References CL_BREAK_IF, SymPairSet< TKey, IREFLEXIVE >::cont_, and sortValues().

bool empty ( ) const
inline

Definition at line 38 of file sympred.hh.

References SymPairSet< TKey, IREFLEXIVE >::cont_.

Field Documentation

TCont cont_
protected

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