MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / onKeyInsert

Method onKeyInsert

radiantcore/entity/KeyObserverMap.h:174–182  ·  view source on GitHub ↗

Entity::Observer implementation, gets called on key insert

Source from the content-addressed store, hash-verified

172
173 // Entity::Observer implementation, gets called on key insert
174 void onKeyInsert(const std::string& key, EntityKeyValue& value)
175 {
176 for (KeyObservers::const_iterator i = _keyObservers.find(key);
177 i != _keyObservers.upper_bound(key) && i != _keyObservers.end();
178 ++i)
179 {
180 value.attach(*i->second);
181 }
182 }
183
184 // Entity::Observer implementation, gets called on Key erase
185 void onKeyErase(const std::string& key, EntityKeyValue& value)

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected