Main Page ? Class Hierarchy ? Compound List ? File List ? Compound Members ? File Members ?

cmt_map Class Template Reference

Collaboration diagram for cmt_map:

[legend]
List of all members.

Public Types

typedef cmt_pair? element_type

Public Methods

T2&? operator[] (const T1& key)

Private Attributes

cmt_vector<element_type>? elements

Member Typedef Documentation

template
typedef cmt_pair cmt_map::element_type
?

Definition at line 21 of file tmap.cxx.


Member Function Documentation

template
T2 & cmt_map::operator[] ( const T1 & key?) [inline]
?

Definition at line 23 of file tmap.cxx.

00024   {
00025     for (int i = 0; i < elements.size (); i++)
00026       {
00027         element_type& e = elements[i];
00028 
00029         if (e.first == key)
00030           {
00031             return (e.second);
00032           }
00033       }
00034 
00035     element_type& e = elements.add ();
00036     
00037     e.first = key;
00038     return (e.second);
00039   }

Member Data Documentation

template
cmt_vector< element_type > cmt_map::elements [private]
?

Definition at line 42 of file tmap.cxx.


The documentation for this class was generated from the following file:
Generated at Fri Apr 12 16:18:15 2002 for cmtgrapher by 1.2.3 written by , ??1997-2000