#include <linked.h>
Collaboration diagram for ucommon::keymap< T, M >:

Public Types | |
| typedef linked_pointer< T > | iterator |
| Convenience typedef for iterative pointer. | |
Public Member Functions | |
| void | add (char *name, T *object) |
| Add a typed object derived from NamedObject to the hash map by name. | |
| void | add (char *name, T &object) |
| Add a typed object derived from NamedObject to the hash map by name. | |
| T * | begin (void) |
| Find first typed object in hash map to iterate. | |
| unsigned | count (void) |
| Count the number of typed objects in our hash map. | |
| T * | get (char *name) |
| Find a typed object derived from NamedObject in the hash map by name. | |
| T ** | index (void) |
| Convert our hash map into a linear object pointer array. | |
| unsigned | limit (void) |
| Retrieve key size to use in NamedObject constructors. | |
| T * | next (T *current) |
| Find next typed object in hash map for iteration. | |
| T & | operator[] (char *name) |
| Find a typed object derived from NamedObject in the hash map by name. | |
| T * | remove (char *name) |
| Remove a typed object derived from NamedObject to the hash map by name. | |
| NamedObject ** | root (void) |
| Retrieve root of index to use in NamedObject constructors. | |
| T ** | sort (void) |
| Convert our hash map into an alphabetically sorted linear object pointer array. | |
| ~keymap () | |
| Destroy the hash map by puring the index chains. | |
This provides a has map index object as a chain of keyindex selected linked pointers of a specified size. This is used for the index and size values for NamedObject's which are listed on a hash map.
Definition at line 1739 of file linked.h.
| void ucommon::keymap< T, M >::add | ( | char * | name, | |
| T * | object | |||
| ) | [inline] |
Add a typed object derived from NamedObject to the hash map by name.
| name | to add. | |
| object | to add. |
| void ucommon::keymap< T, M >::add | ( | char * | name, | |
| T & | object | |||
| ) | [inline] |
Add a typed object derived from NamedObject to the hash map by name.
| name | to add. | |
| object | to add. |
| T* ucommon::keymap< T, M >::begin | ( | void | ) | [inline] |
| unsigned ucommon::keymap< T, M >::count | ( | void | ) | [inline] |
| T* ucommon::keymap< T, M >::get | ( | char * | name | ) | [inline] |
Find a typed object derived from NamedObject in the hash map by name.
| name | to search for. |
| T** ucommon::keymap< T, M >::index | ( | void | ) | [inline] |
| unsigned ucommon::keymap< T, M >::limit | ( | void | ) | [inline] |
| T* ucommon::keymap< T, M >::next | ( | T * | current | ) | [inline] |
| T& ucommon::keymap< T, M >::operator[] | ( | char * | name | ) | [inline] |
Find a typed object derived from NamedObject in the hash map by name.
| name | to search for. |
| T* ucommon::keymap< T, M >::remove | ( | char * | name | ) | [inline] |
Remove a typed object derived from NamedObject to the hash map by name.
| name | to remove. |
| NamedObject** ucommon::keymap< T, M >::root | ( | void | ) | [inline] |
| T** ucommon::keymap< T, M >::sort | ( | void | ) | [inline] |
1.4.7