TupleKeyMap<, ValueT > Class Template Reference

#include <TupleKeyMapI.H>

List of all members.


Detailed Description

template<TupleTypenames, typename ValueT>
class TupleKeyMap<, ValueT >

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

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

Member Typedef Documentation

template<TupleTypenames , typename ValueT>
typedef std::map< Tuple4, ValueT > TupleKeyMap<, ValueT >::RepType [private]

template<TupleTypenames , typename ValueT>
typedef RepType::const_iterator TupleKeyMap<, ValueT >::ConstIteratorType


Member Function Documentation

template<TupleTypenames , typename ValueT>
void TupleKeyMap<, ValueT >::insert ( TupleArgDecls  ,
ValueT  value 
) [inline]

template<TupleTypenames , typename ValueT>
bool TupleKeyMap<, ValueT >::containsKey ( TupleArgDecls  ,
ConstIteratorType i = 0 
) const [inline]

template<TupleTypenames , typename ValueT>
ValueT TupleKeyMap<, ValueT >::fetch ( TupleArgDecls   )  const [inline]

Returns the value associated with the tuple key.

References CH_assert, TupleKeyMap<, ValueT >::containsKey(), TupleKeyMap<, ValueT >::m_rep, Tuple2, Tuple3, Tuple4, and TupleArgValues.

template<TupleTypenames , typename ValueT>
ValueT TupleKeyMap<, ValueT >::fetch ( ConstIteratorType  iter  )  const [inline]

template<TupleTypenames , typename ValueT>
void TupleKeyMap<, ValueT >::report (  )  const [inline]

template<TupleTypenames , typename ValueT>
void TupleKeyMap<, ValueT >::clear (  )  [inline]

template<TupleTypenames , typename ValueT>
unsigned TupleKeyMap<, ValueT >::size (  )  [inline]


Member Data Documentation

template<TupleTypenames , typename ValueT>
RepType TupleKeyMap<, ValueT >::m_rep [private]


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

Generated on Mon Mar 27 03:43:13 2017 for Chombo + EB by  doxygen 1.5.5