Template class allowing lookup of stored type by 'unsigned', 'double' or 'MISTRING'. More...
#include <mi32/mimap3.h>
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) |
Template class allowing lookup of stored type by 'unsigned', 'double' or 'MISTRING'.
| 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.
| NumValues | Initial number of values to allow if using 'unsigned' to access. |
| bool MIMAP3< STORED_TYPE >::Find | ( | const MISTRING & | value, | |
| STORED_TYPE & | ret | |||
| ) | const [inline] |
Find stored item using 'MISTRING' value.
| bool MIMAP3< STORED_TYPE >::Find | ( | double | value, | |
| STORED_TYPE & | ret | |||
| ) | const [inline] |
Find stored item using 'double' value.
| bool MIMAP3< STORED_TYPE >::Find | ( | unsigned | value, | |
| STORED_TYPE & | ret | |||
| ) | const [inline] |
Find stored item using 'unsigned' value.
| void MIMAP3< STORED_TYPE >::Store | ( | const MISTRING & | value, | |
| const STORED_TYPE & | stored | |||
| ) | [inline] |
Store item using 'MISTRING' value.
| void MIMAP3< STORED_TYPE >::Store | ( | double | value, | |
| const STORED_TYPE & | stored | |||
| ) | [inline] |
Store item using 'double' value.
| void MIMAP3< STORED_TYPE >::Store | ( | unsigned | value, | |
| const STORED_TYPE & | stored | |||
| ) | [inline] |
Store item using 'unsigned' value.
1.6.1