Chombo + EB  3.0
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
TupleKeyMap< TupleTypenames, ValueT > Class Template Reference

#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
 

Detailed Description

template<TupleTypenames, typename ValueT>
class TupleKeyMap< TupleTypenames, 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<().

Member Typedef Documentation

template<TupleTypenames , typename ValueT >
typedef std::map< Tuple4, ValueT > TupleKeyMap< TupleTypenames, ValueT >::RepType
private
template<TupleTypenames , typename ValueT >
typedef RepType::const_iterator TupleKeyMap< TupleTypenames, ValueT >::ConstIteratorType

Member Function Documentation

template<TupleTypenames , typename ValueT >
void TupleKeyMap< TupleTypenames, ValueT >::insert ( TupleArgDecls  ,
ValueT  value 
)
template<TupleTypenames , typename ValueT >
bool TupleKeyMap< TupleTypenames, ValueT >::containsKey ( TupleArgDecls  ,
ConstIteratorType i = 0 
) const

References Tuple2, Tuple3, and Tuple4.

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

Returns the value associated with the tuple key.

References CH_assert, Tuple2, Tuple3, Tuple4, and TupleArgValues.

template<TupleTypenames , typename ValueT >
ValueT TupleKeyMap< TupleTypenames, ValueT >::fetch ( ConstIteratorType  iter) const
template<TupleTypenames , typename ValueT >
void TupleKeyMap< TupleTypenames, ValueT >::report ( ) const
template<TupleTypenames , typename ValueT >
void TupleKeyMap< TupleTypenames, ValueT >::clear ( )
template<TupleTypenames , typename ValueT >
unsigned TupleKeyMap< TupleTypenames, ValueT >::size ( )
inline

Member Data Documentation

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

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