#include <map_ptr.h>
Public Member Functions | |
| map_ptr () | |
| Map constructor. | |
| ~map_ptr () | |
| Map destructor, destroy all contained pointers. | |
| iterator | begin () |
| Return the iterator to the first element. | |
| iterator | end () |
| Return the iterator to the end of the elements. | |
| iterator | find (key_type key) |
| Search an element by key. | |
| void | insert (key_type key, std::auto_ptr< element_type > element) |
| Insert a new item in the map. | |
| size_type | erase (key_type key) |
| Erase an item in the map. | |
| element_type * | operator[] (key_type key) |
| Return a pointer to the element with specified key. | |
| key_type | type of the key | |
| element_type | type of element, the map contains pointers to this type |
| iterator GUI::map_ptr< key_type, element_type >::begin | ( | ) | [inline] |
Return the iterator to the first element.
| iterator GUI::map_ptr< key_type, element_type >::end | ( | ) | [inline] |
Return the iterator to the end of the elements.
| size_type GUI::map_ptr< key_type, element_type >::erase | ( | key_type | key | ) | [inline] |
Erase an item in the map.
| key | key of the element to remove |
| iterator GUI::map_ptr< key_type, element_type >::find | ( | key_type | key | ) | [inline] |
Search an element by key.
| key | key of the element to search |
| void GUI::map_ptr< key_type, element_type >::insert | ( | key_type | key, | |
| std::auto_ptr< element_type > | element | |||
| ) | [inline] |
Insert a new item in the map.
| key | key of the element | |
| element | element to insert |
| element_type* GUI::map_ptr< key_type, element_type >::operator[] | ( | key_type | key | ) | [inline] |
Return a pointer to the element with specified key.
| key | key of the element |
1.4.7