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

Method AddChild

Util/src/InfoTree/InfoNode.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void InfoNode::AddChild(InfoNode n) {
40 if (_index < _tree->_nodeOrInfos.size()) {
41 auto node = _tree->_nodeOrInfos[_index];
42 if (node.Kind == InfoKind::Array) {
43 _tree->_arrayChildren[node.Data.ChildIndex].push_back(n._index);
44 }
45 }
46}
47
48void InfoNode::AddChild(std::string s) {
49 auto c = _tree->CreateString(s);

Callers 4

CreateFromLuaFunction · 0.80
update_name_style_configFunction · 0.80
CreateFromJsonFunction · 0.80
DeserializeMethod · 0.80

Calls 7

stringFunction · 0.85
CreateStringMethod · 0.80
CreateBoolMethod · 0.80
CreateNumberMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected