| Polaris: Dictionary< T > Class Template Reference | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members
Dictionary< T > Class Template Referencefile Dictionary.h A hashtable based on strings More...
Inheritance diagram for Dictionary< T >: ![]()
Detailed Descriptiontemplate<class T>
file Dictionary.h A hashtable based on strings
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||
|
Definition at line 96 of file Dictionary.h. References register_instance(). |
|
||||||||||
|
Definition at line 105 of file Dictionary.h. References register_instance(). |
|
|||||||||
|
virtual Dictionary<T> *clone() const;
Definition at line 125 of file Dictionary.h. References unregister_instance(). |
|
||||||||||
|
Definition at line 116 of file Dictionary.h. References Database< S, T >::operator=(). Referenced by CommonBlockDict::CommonBlockDict(), EquivalenceDict::EquivalenceDict(), EquivalenceDict::operator=(), and CommonBlockDict::operator=(). |
|
||||||||||
|
Reimplemented in EquivalenceDict. Definition at line 156 of file Dictionary.h. References Database< S, T >::del(). Referenced by Symtab::del(), StmtList::del(), Dictionary< T >::ins(), main(), StmtList::retag(), and StmtList::split_elseif(). |
|
||||||||||
|
Definition at line 134 of file Dictionary.h. Referenced by StmtList::convert(), ProgramUnit::create_program_unit(), external_program_unit(), Symtab::ins(), main(), move_saved_vars(), Symtab::operator=(), read_pu(), Dictionary< T >::rename(), StmtList::retag(), StmtList::split_elseif(), store_pu(), Symtab::Symtab(), and Variable_set_new(). |
|
||||||||||||||||
|
Insert item into the dictionary. The meaning of the replace_if_already_exists is: replace_if_already_exists != 0 : If an item already exists in the dictionary with the same tag as item, the old item is deleted and is replaced by item. replace_if_already_exists == 0 : If an item already exists in the dictionary with the same tag as item, an error message is displayed and the program is aborted. Definition at line 141 of file Dictionary.h. References Dictionary< T >::del(), Database< S, T >::ins(), and ProtoDatabase< String, T >::member(). |
|
||||||||||
|
Definition at line 165 of file Dictionary.h. References ProtoDatabase< S, T >::find_ref(). Referenced by Dictionary< T >::arb_ref(), StmtList::convert(), external_program_unit(), Dictionary< T >::find(), Symtab::find_ref(), StmtList::find_ref(), main(), Symtab::operator[](), Dictionary< T >::operator[](), StmtList::retag(), and store_pu(). |
|
||||||||||
|
Definition at line 173 of file Dictionary.h. References ProtoDatabase< S, T >::find_ref(). |
|
||||||||||
|
Definition at line 181 of file Dictionary.h. References Dictionary< T >::find_ref(). |
|
||||||||||
|
Definition at line 188 of file Dictionary.h. References Dictionary< T >::find_ref(). |
|
||||||||||
|
Definition at line 195 of file Dictionary.h. References dict_abort(), and Dictionary< T >::find_ref(). |
|
||||||||||
|
Definition at line 205 of file Dictionary.h. References dict_abort(), and Dictionary< T >::find_ref(). |
|
||||||||||
|
Remove and return (does NOT delete) the item in the dictionary which has this tag. Returns 0 if none was found Definition at line 215 of file Dictionary.h. References Database< S, T >::grab(). Referenced by Symtab::grab(), Dictionary< T >::grab_arb(), Dictionary< T >::rename(), and retrieve_pu(). |
|
|||||||||
|
Definition at line 224 of file Dictionary.h. References TypedBaseMap< S, T >::arb_key_ref(), and Dictionary< T >::find_ref(). Referenced by Dictionary< T >::grab_arb(). |
|
|||||||||
|
Returns pointer to arbitrary element (or 0 if dictionary is empty).
Definition at line 236 of file Dictionary.h. References TypedBaseMap< S, T >::arb_key_ref(), and Dictionary< T >::find_ref(). |
|
|||||||||
|
Removes and returns pointer to arbitrary element (or returns 0 if dictionary is empty).
Definition at line 248 of file Dictionary.h. References Dictionary< T >::arb_ref(), and Dictionary< T >::grab(). |
|
||||||||||
|
Print the elements of the dictionary. It invokes a non-virtual member function to print a representation of the data structure at this level of the Collection hierarchy, and, since it is not a class member function, it must be explicitly instantiated before use. Reimplemented from Database< String, T >. Definition at line 273 of file Dictionary.h. References Database< S, T >::print(). |
|
||||||||||||||||
|
Rename the member of this class whose tag is 'tag' to the new tag 'new_tag' (and automatically reindex it). An error occurs if there is not item in the dictionary with the tag 'tag' OR if there is already an item in the dictionary with the tag 'new_tag'. Definition at line 260 of file Dictionary.h. References Dictionary< T >::grab(), and Dictionary< T >::ins(). Referenced by Symtab::rename(). |
|
|||||
|
Definition at line 36 of file Dictionary.h. |
| © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved. | Fri Mar 25 23:07:11 2005 |