28 #ifndef ROCKETCOREDICTIONARY_H
29 #define ROCKETCOREDICTIONARY_H
56 inline void Set(
const String& key,
const T& value);
65 inline T Get(
const String& key,
const T& default_val)
const;
70 inline bool GetInto(
const String& key, T& value)
const;
73 bool Remove(
const String& key);
81 bool Reserve(
int size);
99 unsigned int num_full;
100 unsigned int num_used;
110 static const int DICTIONARY_MINSIZE = 8;
113 struct DictionaryEntry
115 DictionaryEntry() : hash(0) {}
128 DictionaryEntry small_table[DICTIONARY_MINSIZE];
131 DictionaryEntry* table;
134 void Insert(
const String& key,
Hash hash,
const Variant& value);
137 DictionaryEntry* Retrieve(
const String& key,
Hash hash)
const;
140 void ResetToMinimumSize();
143 void Copy(
const Dictionary &dict);
146 #include "Dictionary.inl"
Definition: Clipboard.h:33
StringBase< char > String
Definition: String.h:40
unsigned int Hash
Definition: Types.h:54
Definition: Dictionary.h:44
bool Iterate(int &pos, String &key, T &value) const
Definition: Dictionary.h:57