| 45 | } |
| 46 | |
| 47 | InfoNode InfoTree::CreateString(std::string s) { |
| 48 | auto nodeIndex = _nodeOrInfos.size(); |
| 49 | auto valueIndex = _stringValues.size(); |
| 50 | _stringValues.emplace_back(s); |
| 51 | |
| 52 | InfoOrNode n; |
| 53 | n.Kind = InfoKind::String; |
| 54 | n.Data.StringIndex = valueIndex; |
| 55 | _nodeOrInfos.push_back(n); |
| 56 | |
| 57 | return InfoNode(nodeIndex, this); |
| 58 | } |
| 59 | |
| 60 | InfoNode InfoTree::CreateBool(bool b) { |
| 61 | auto nodeIndex = _nodeOrInfos.size(); |
no test coverage detected