Chombo + EB  3.2
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

◆ RepType

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

◆ ConstIteratorType

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

Member Function Documentation

◆ insert()

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

◆ containsKey()

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

◆ fetch() [1/2]

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

◆ fetch() [2/2]

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

◆ report()

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

◆ clear()

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

◆ size()

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

Member Data Documentation

◆ m_rep

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

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