#include <sharelib.h>
Public Member Functions | |
| Map (size_type htSize=defaultHtSize) | |
| ~Map () | |
| void | clear () |
| const_iterator | find (const TKey &key) |
| Look up for key in map by key. | |
| TValue & | operator[] (const TKey &key) |
| indexer | |
| const_iterator | begin () const |
| const_iterator | end () const |
Classes | |
| class | const_iterator |
| STL map const_iterator equivalent. More... | |
| struct | Item |
Light-weight implementation of std::map
| TKey | Type of map key | |
| TValue | Type of map value | |
| TAllocator | Type of allocator for container. Default is std::allocator. For sharing use Share::Allocator instead. |
Definition at line 1196 of file sharelib.h.
| Share::Map< TKey, TValue, TAllocator >::Map | ( | size_type | htSize = defaultHtSize |
) | [inline] |
| htSize | Size of hash table |
Definition at line 1214 of file sharelib.h.
| Share::Map< TKey, TValue, TAllocator >::~Map | ( | ) | [inline] |
Definition at line 1326 of file sharelib.h.
| void Share::Map< TKey, TValue, TAllocator >::clear | ( | ) | [inline] |
Remove all items from map.
Definition at line 1334 of file sharelib.h.
| const_iterator Share::Map< TKey, TValue, TAllocator >::find | ( | const TKey & | key | ) | [inline] |
Look up for key in map by key.
| key | to look up |
Definition at line 1353 of file sharelib.h.
| TValue& Share::Map< TKey, TValue, TAllocator >::operator[] | ( | const TKey & | key | ) | [inline] |
indexer
Look up for pair in map by key. New Pair is created if key is not found.
| key | to look up |
Definition at line 1369 of file sharelib.h.
References Share::Pair< TFirst, TSecond >::first, and Share::Pair< TFirst, TSecond >::second.
| const_iterator Share::Map< TKey, TValue, TAllocator >::begin | ( | ) | const [inline] |
Definition at line 1395 of file sharelib.h.
| const_iterator Share::Map< TKey, TValue, TAllocator >::end | ( | ) | const [inline] |
Definition at line 1405 of file sharelib.h.
1.5.2