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

Method CreateArray

Util/src/InfoTree/InfoTree.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34InfoNode InfoTree::CreateArray() {
35 auto nodeIndex = _nodeOrInfos.size();
36 auto childIndex = _arrayChildren.size();
37 _arrayChildren.emplace_back();
38
39 InfoOrNode n;
40 n.Kind = InfoKind::Array;
41 n.Data.ChildIndex = childIndex;
42 _nodeOrInfos.push_back(n);
43
44 return InfoNode(nodeIndex, this);
45}
46
47InfoNode InfoTree::CreateString(std::string s) {
48 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