MIMAP3< STORED_TYPE > Class Template Reference

Template class allowing lookup of stored type by 'unsigned', 'double' or 'MISTRING'. More...

#include <mi32/mimap3.h>

List of all members.

Public Member Functions

 MIMAP3 (unsigned NumValues=0, unsigned MaxValues=0)
bool Find (const MISTRING &value, STORED_TYPE &ret) const
bool Find (double value, STORED_TYPE &ret) const
bool Find (unsigned value, STORED_TYPE &ret) const
void Store (const MISTRING &value, const STORED_TYPE &stored)
void Store (double value, const STORED_TYPE &stored)
void Store (unsigned value, const STORED_TYPE &stored)

Detailed Description

template<typename STORED_TYPE>
class MIMAP3< STORED_TYPE >

Template class allowing lookup of stored type by 'unsigned', 'double' or 'MISTRING'.


Constructor & Destructor Documentation

template<typename STORED_TYPE >
MIMAP3< STORED_TYPE >::MIMAP3 ( unsigned  NumValues = 0,
unsigned  MaxValues = 0 
) [inline, explicit]

Constructor.

If NumValues is nonzero, construction of 'NumValues' instances of STORED_TYPE will occur. Care should be taken to ensure that this value accurately reflects the true maximum value to be used and that the sparseness of the map is low. Otherwise these values should be set to 0 to perform std::map based searching and insertion.

Parameters:
NumValues Initial number of values to allow if using 'unsigned' to access.

Member Function Documentation

template<typename STORED_TYPE >
bool MIMAP3< STORED_TYPE >::Find ( const MISTRING value,
STORED_TYPE &  ret 
) const [inline]

Find stored item using 'MISTRING' value.

template<typename STORED_TYPE >
bool MIMAP3< STORED_TYPE >::Find ( double  value,
STORED_TYPE &  ret 
) const [inline]

Find stored item using 'double' value.

template<typename STORED_TYPE >
bool MIMAP3< STORED_TYPE >::Find ( unsigned  value,
STORED_TYPE &  ret 
) const [inline]

Find stored item using 'unsigned' value.

template<typename STORED_TYPE >
void MIMAP3< STORED_TYPE >::Store ( const MISTRING value,
const STORED_TYPE &  stored 
) [inline]

Store item using 'MISTRING' value.

template<typename STORED_TYPE >
void MIMAP3< STORED_TYPE >::Store ( double  value,
const STORED_TYPE &  stored 
) [inline]

Store item using 'double' value.

template<typename STORED_TYPE >
void MIMAP3< STORED_TYPE >::Store ( unsigned  value,
const STORED_TYPE &  stored 
) [inline]

Store item using 'unsigned' value.


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

Generated on Sun Oct 7 21:33:38 2012 for TNTsdk 2012 by  doxygen 1.6.1