Chombo + EB + MF
3.2
|
#include <TupleKeyMapI.H>
Public Types | |
typedef RepType::const_iterator | ConstIteratorType |
Public Member Functions | |
void | insert (TupleArgDecls, ValueT) |
bool | containsKey (TupleArgDecls, ConstIteratorType *i=0) const |
ValueT | fetch (TupleArgDecls) const |
ValueT | fetch (ConstIteratorType) const |
void | report () const |
void | clear () |
unsigned | size () |
Private Types | |
typedef std::map< Tuple4, ValueT > | RepType |
Private Attributes | |
RepType | m_rep |
Map whose key is a 4-tuple. The 4 is hardcoded but can be pretty easily changed by making obvious modifications to the #define's above and going up to Tuple<n> in the functions below. Tuple types (T1,...) must implement both operator==() and operator<().
|
private |
typedef RepType::const_iterator TupleKeyMap< TupleTypenames, ValueT >::ConstIteratorType |
void TupleKeyMap< TupleTypenames, ValueT >::insert | ( | TupleArgDecls | , |
ValueT | value | ||
) |
bool TupleKeyMap< TupleTypenames, ValueT >::containsKey | ( | TupleArgDecls | , |
ConstIteratorType * | i = 0 |
||
) | const |
References TupleKeyMap< TupleTypenames, ValueT >::m_rep, Tuple2, Tuple3, and Tuple4.
Referenced by TupleKeyMap< TupleTypenames, ValueT >::fetch(), and TupleKeyMap< TupleTypenames, ValueT >::insert().
ValueT TupleKeyMap< TupleTypenames, ValueT >::fetch | ( | TupleArgDecls | ) | const |
Returns the value associated with the tuple key.
References CH_assert, TupleKeyMap< TupleTypenames, ValueT >::containsKey(), TupleKeyMap< TupleTypenames, ValueT >::m_rep, Tuple2, Tuple3, Tuple4, and TupleArgValues.
ValueT TupleKeyMap< TupleTypenames, ValueT >::fetch | ( | ConstIteratorType | iter | ) | const |
void TupleKeyMap< TupleTypenames, ValueT >::report | ( | ) | const |
References TupleKeyMap< TupleTypenames, ValueT >::m_rep, and pout().
void TupleKeyMap< TupleTypenames, ValueT >::clear | ( | ) |
References TupleKeyMap< TupleTypenames, ValueT >::m_rep.
|
inline |
References TupleKeyMap< TupleTypenames, ValueT >::m_rep.
|
private |
Referenced by TupleKeyMap< TupleTypenames, ValueT >::clear(), TupleKeyMap< TupleTypenames, ValueT >::containsKey(), TupleKeyMap< TupleTypenames, ValueT >::fetch(), TupleKeyMap< TupleTypenames, ValueT >::insert(), TupleKeyMap< TupleTypenames, ValueT >::report(), and TupleKeyMap< TupleTypenames, ValueT >::size().