MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / CreateObject

Method CreateObject

Util/src/InfoTree/InfoTree.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21InfoNode InfoTree::CreateObject() {
22 auto nodeIndex = _nodeOrInfos.size();
23 auto childIndex = _mapChildren.size();
24 _mapChildren.emplace_back();
25
26 InfoOrNode n;
27 n.Kind = InfoKind::Object;
28 n.Data.ChildIndex = childIndex;
29 _nodeOrInfos.push_back(n);
30
31 return InfoNode(nodeIndex, this);
32}
33
34InfoNode InfoTree::CreateArray() {
35 auto nodeIndex = _nodeOrInfos.size();

Callers 2

CreateFromLuaFunction · 0.80
CreateFromJsonFunction · 0.80

Calls 3

InfoNodeClass · 0.85
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected