MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / MarkInUse

Method MarkInUse

3rdparty/tinyxml2/tinyxml2.cpp:2211–2222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2209
2210
2211void XMLDocument::MarkInUse(const XMLNode* const node)
2212{
2213 TIXMLASSERT(node);
2214 TIXMLASSERT(node->_parent == 0);
2215
2216 for (size_t i = 0; i < _unlinked.Size(); ++i) {
2217 if (node == _unlinked[i]) {
2218 _unlinked.SwapRemove(i);
2219 break;
2220 }
2221 }
2222}
2223
2224void XMLDocument::Clear()
2225{

Callers 2

DeleteNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls 2

SizeMethod · 0.80
SwapRemoveMethod · 0.80

Tested by

no test coverage detected