#include <ls.h>
Inheritance diagram for LsMap< Key, T >:


Public Types | |
| typedef less< Key > | less_key |
| typedef map< Key, T, less_key > | baseMap |
| typedef map< Key, T, less< Key > >::iterator | iterator |
| typedef pair< iterator, bool > | pair_iterator_bool |
Public Member Functions | |
| LsMap () | |
| iterator | insert (const Key &key, const T &item) |
| void | eraseAll () |
| T * | findPtr (Key key) |
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
Definition at line 105 of file ls.h. Referenced by LsMap< int, ns_addr_t >::insert(). |
|
|||||||||
|
Definition at line 101 of file ls.h.
00101 : baseMap() {} |
|
|||||||||
|
Definition at line 112 of file ls.h.
00112 { erase(begin(), end()); }
|
|
||||||||||
|
Definition at line 113 of file ls.h.
00113 {
00114 iterator it = baseMap::find(key);
00115 return (it == baseMap::end()) ? (T *)NULL : &((*it).second);
00116 }
|
|
||||||||||||||||
|
Definition at line 106 of file ls.h.
00106 {
00107 typename baseMap::value_type v(key, item);
00108 pair_iterator_bool ib = baseMap::insert(v);
00109 return ib.second ? ib.first : baseMap::end();
00110 }
|
1.3.3