MCPcopy Create free account
hub / github.com/anjo76/angelscript / Set

Method Set

sdk/add_on/scriptdictionary/scriptdictionary.cpp:310–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void CScriptDictionary::Set(const dictKey_t &key, void *value, int typeId)
311{
312 dictMap_t::iterator it;
313 it = dict.find(key);
314 if (it == dict.end())
315 {
316 it = dict.insert(dictMap_t::value_type(key, CScriptDictValue())).first;
317 iterGuard++;
318 }
319
320 it->second.Set(engine, value, typeId);
321}
322
323// This overloaded method is implemented so that all integer and
324// unsigned integers types will be stored in the dictionary as int64

Calls 8

CScriptDictValueClass · 0.85
findMethod · 0.80
endMethod · 0.80
AddRefScriptObjectMethod · 0.80
GetTypeInfoByIdMethod · 0.80
SetExceptionMethod · 0.80

Tested by

no test coverage detected