
#include <rutz/assocarray.h>
Collaboration diagram for rutz::assoc_array< value_t >:

Definition at line 104 of file assocarray.h.
Public Member Functions | |
| assoc_array (const char *descr, bool nocase=false) | |
| Default constructor. | |
| rutz::fstring | get_known_keys (const char *sep) const |
| Get a string listing of known keys, separated by the string sep. | |
| void | throw_for_key (const char *key, const rutz::file_pos &pos) const |
| Raise an exception reporting an unknown key. | |
| void | throw_for_key (const rutz::fstring &key, const rutz::file_pos &pos) const |
| Raise an exception reporting an unknown key. | |
| value_t * | get_ptr_for_key (const rutz::fstring &key) const |
| Get the object associated with the given key. | |
| value_t * | get_ptr_for_key (const char *key) const |
| Get the object associated with the given key. | |
| void | set_ptr_for_key (const char *key, value_t *ptr) |
| Associate the object at ptr with the given key. | |
|
||||||||||||||||
|
Default constructor.
Definition at line 117 of file assocarray.h. |
|
||||||||||
|
Get a string listing of known keys, separated by the string sep.
Definition at line 121 of file assocarray.h. Referenced by rutz::factory< nub::ref< P > >::get_known_keys(). |
|
||||||||||
|
Get the object associated with the given key.
Definition at line 139 of file assocarray.h. |
|
||||||||||
|
Get the object associated with the given key.
Definition at line 135 of file assocarray.h. Referenced by rutz::factory< nub::ref< P > >::find_creator(), and rutz::factory< nub::ref< P > >::register_alias(). |
|
||||||||||||||||
|
Associate the object at ptr with the given key.
Definition at line 143 of file assocarray.h. Referenced by rutz::factory< nub::ref< P > >::register_alias(), and rutz::factory< nub::ref< P > >::register_creator(). |
|
||||||||||||||||
|
Raise an exception reporting an unknown key.
Definition at line 130 of file assocarray.h. |
|
||||||||||||||||
|
Raise an exception reporting an unknown key.
Definition at line 125 of file assocarray.h. Referenced by rutz::factory< nub::ref< P > >::new_checked_object(). |
1.4.4