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

Method CreateNumber

Util/src/InfoTree/InfoTree.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70InfoNode InfoTree::CreateNumber(double d) {
71 auto nodeIndex = _nodeOrInfos.size();
72 InfoOrNode n;
73 n.Kind = InfoKind::Bool;
74 n.Data.NumberValue = d;
75 _nodeOrInfos.push_back(n);
76
77 return InfoNode(nodeIndex, this);
78}
79
80InfoNode InfoTree::GetRoot() {
81 if (_nodeOrInfos.size() <= 1) {

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