Changeset 38
- Timestamp:
- Aug 12, 2005, 5:39:09 PM (19 years ago)
- Location:
- trunk/include/core
- Files:
-
- 7 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/core/RpDict.h
r21 r38 32 32 33 33 // send the search iterator to the beginning of the hash table 34 virtualRpDictEntry<KeyType,ValType>* first();34 /*virtual*/ RpDictEntry<KeyType,ValType>* first(); 35 35 36 36 // send the search iterator to the next element of the hash table 37 virtualRpDictEntry<KeyType,ValType>* next();37 /*virtual*/ RpDictEntry<KeyType,ValType>* next(); 38 38 /* 39 39 RpDictIterator(RpDict* table_Ptr) … … 195 195 196 196 // checks table size 197 virtualconst int size() const;197 /*virtual*/ const int size() const; 198 198 199 199 // insert new object into table … … 201 201 // returns !0 on failure (object cannot be inserted or dne) 202 202 // 203 virtualRpDict<KeyType,ValType>&203 /*virtual*/ RpDict<KeyType,ValType>& 204 204 set( KeyType& key, 205 205 ValType& value, … … 208 208 // find an RpUnits object that should exist in RpUnitsTable 209 209 // 210 virtualRpDictEntry<KeyType,ValType>&210 /*virtual*/ RpDictEntry<KeyType,ValType>& 211 211 find( KeyType& key ); 212 212 213 virtualRpDictEntry<KeyType,ValType>& operator[]( KeyType& key)213 /*virtual*/ RpDictEntry<KeyType,ValType>& operator[]( KeyType& key) 214 214 { 215 215 return find(key); … … 218 218 // clear the entire table 219 219 // iterate through the table and call erase on each element 220 virtualRpDict<KeyType,ValType>& clear();220 /*virtual*/ RpDict<KeyType,ValType>& clear(); 221 221 222 222 // get the nullEntry hash entry for initialization of references 223 virtualRpDictEntry<KeyType,ValType>& getNullEntry();223 /*virtual*/ RpDictEntry<KeyType,ValType>& getNullEntry(); 224 224 225 225 // template <KeyType, ValType> friend class RpDictEntry; … … 258 258 259 259 // destructor 260 virtual~RpDict()260 /*virtual*/ ~RpDict() 261 261 { 262 262 // probably need to delete all the entries as well -
trunk/include/core/RpUnits.h
r21 r38 5 5 #include <errno.h> 6 6 7 #include "RpDict.h" 7 #ifndef _RpDICT_H 8 #include "RpDict.h" 9 #endif 10 8 11 #include "RpUnitsStd.h" 9 12
Note: See TracChangeset
for help on using the changeset viewer.