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

Method CreateBool

Util/src/InfoTree/InfoTree.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60InfoNode InfoTree::CreateBool(bool b) {
61 auto nodeIndex = _nodeOrInfos.size();
62 InfoOrNode n;
63 n.Kind = InfoKind::Bool;
64 n.Data.BoolValue = b;
65 _nodeOrInfos.push_back(n);
66
67 return InfoNode(nodeIndex, this);
68}
69
70InfoNode InfoTree::CreateNumber(double d) {
71 auto nodeIndex = _nodeOrInfos.size();

Callers 3

CreateFromLuaFunction · 0.80
AddChildMethod · 0.80
CreateFromJsonFunction · 0.80

Calls 3

InfoNodeClass · 0.85
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected