Home | History | Annotate | Download | only in common

Lines Matching refs:Entry

49 // The actual map storage (the Entry) is guaranteed to be POD, so that it can
55 // ValueSize-1 characters in an entry. NumEntries is the total number of
65 // An Entry object is a single entry in the map. If the key is a 0-length
66 // NUL-terminated string, the entry is empty.
67 struct Entry {
85 // Returns the next entry in the map, or NULL if at the end of the
87 const Entry* Next() {
89 const Entry* entry = &map_.entries_[current_++];
90 if (entry->is_active()) {
91 return entry;
150 const Entry* entry = GetConstEntryForKey(key);
151 if (!entry)
154 return entry->value;
176 Entry* entry = GetEntryForKey(key);
179 if (!entry) {
182 entry = &entries_[i];
184 strncpy(entry->key, key, key_size);
185 entry->key[key_size - 1] = '\0';
192 // If the map is out of space, entry will be NULL.
193 if (!entry)
206 strncpy(entry->value, value, value_size);
207 entry->value[value_size - 1] = '\0';
217 Entry* entry = GetEntryForKey(key);
218 if (entry) {
219 entry->key[0] = '\0';
220 entry->value[0] = '\0';
238 const Entry* GetConstEntryForKey(const char* key) const {
247 Entry* GetEntryForKey(const char* key) {
248 return const_cast<Entry*>(GetConstEntryForKey(key));
251 Entry entries_[NumEntries];