mbo::CStrMap< __Ty, __CTy, __Pr, __Alloc > Class Template Reference

map2 using CStr as Key type (case insenstive) More...

#include <MboStrMap.h>

Inheritance diagram for mbo::CStrMap< __Ty, __CTy, __Pr, __Alloc >:

Inheritance graph
{mbo::CStrMapStr\< std::basic_string \>\n||+ ~CStrMapStr()\l+ CStrMapStr()\l+ CStrMapStr()\l+ ToCStr()\l+ Scan()\l}{mbo::CStrMap\< std::basic_string \>\n||+ ~CStrMap()\l}{std::map2\< std::basic_string, __Ty, std::deque2\< std::basic_string \>, __CTy, __Pr, __Alloc \>\n||+ operator[]()\l+ keys()\l+ keys()\l+ values()\l+ values()\l+ insert_elem()\l+ select()\l+ contains_key()\l+ first_key()\l+ first_elem()\l+ first_elem()\l}
[legend]
Collaboration diagram for mbo::CStrMap< __Ty, __CTy, __Pr, __Alloc >:

Collaboration graph
{std::map2\< std::basic_string, __Ty, std::deque2\< std::basic_string \>, __CTy, __Pr, __Alloc \>\n||+ operator[]()\l+ keys()\l+ keys()\l+ values()\l+ values()\l+ insert_elem()\l+ select()\l+ contains_key()\l+ first_key()\l+ first_elem()\l+ first_elem()\l}
[legend]

List of all members.

Public Member Functions

virtual ~CStrMap ()


Detailed Description

template<class __Ty, class __CTy = std::deque2 <__Ty>, class __Pr = less_ic<MboString>, class __Alloc = std::allocator<std::pair<const MboString, __Ty> >>
class mbo::CStrMap< __Ty, __CTy, __Pr, __Alloc >

map2 using CStr as Key type (case insenstive)

It is often necessary to have string indexed arrays. The easiest way to achieve this is to specialise map2 to use CStr as key type. CStrMap does this and only requires one type parameter that will decide which type to use for the values.

map2 specialisation using CStr as key type and less_cstr_ic as prediction to make keys case insensitive as described above in less_cstr_ic.

Note:
Optional iostream support is guarded by compiler define SUPPORT_IOSTREAM.
Parameters:
__Ty Type of values to assiociate with the CStr keys.
__CTy Type of value conatiner (defaults to the same container as CStrList).
__Pr Prediction used for key comparison (default to case insensitive).
__Alloc Allocator for pairs of (key,value).

Definition at line 94 of file MboStrMap.h.


Constructor & Destructor Documentation

template<class __Ty, class __CTy = std::deque2 <__Ty>, class __Pr = less_ic<MboString>, class __Alloc = std::allocator<std::pair<const MboString, __Ty> >>
virtual mbo::CStrMap< __Ty, __CTy, __Pr, __Alloc >::~CStrMap (  )  [inline, virtual]

virtual destructor

Definition at line 99 of file MboStrMap.h.

00099 {};


The documentation for this class was generated from the following file:
  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by doxygen 1.5.4