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

#include <sympred.hh>

Public Types

typedef TMap::const_iterator const_iterator
typedef TMap::const_reference const_reference

Public Member Functions

const_iterator begin () const
 return STL-like iterator to go through the container
const_iterator end () const
 return STL-like iterator to go through the container
void add (TKey k1, TKey k2, TVal val)
bool chk (TVal *pDst, TKey k1, TKey k2) const

Protected Types

typedef std::pair< TKey, TKey > TItem
typedef std::map< TItem, TVal > TMap

Protected Attributes

TMap db_

Detailed Description

template<class TKey, class TVal>
class SymPairMap< TKey, TVal >

Definition at line 66 of file sympred.hh.

Member Typedef Documentation

typedef TMap::const_iterator const_iterator

Definition at line 74 of file sympred.hh.

typedef TMap::const_reference const_reference

Definition at line 75 of file sympred.hh.

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

Definition at line 68 of file sympred.hh.

typedef std::map<TItem, TVal> TMap
protected

Definition at line 69 of file sympred.hh.

Member Function Documentation

void add ( TKey  k1,
TKey  k2,
TVal  val 
)
inline

Definition at line 84 of file sympred.hh.

References CL_BREAK_IF, SymPairMap< TKey, TVal >::db_, hasKey(), and sortValues().

const_iterator begin ( ) const
inline

return STL-like iterator to go through the container

Definition at line 78 of file sympred.hh.

References SymPairMap< TKey, TVal >::db_.

bool chk ( TVal *  pDst,
TKey  k1,
TKey  k2 
) const
inline

Definition at line 92 of file sympred.hh.

References SymPairMap< TKey, TVal >::db_, and sortValues().

const_iterator end ( ) const
inline

return STL-like iterator to go through the container

Definition at line 81 of file sympred.hh.

References SymPairMap< TKey, TVal >::db_.

Field Documentation

TMap db_
protected

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