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

Method DeepClone

3rdparty/tinyxml2/tinyxml2.cpp:865–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865XMLNode* XMLNode::DeepClone(XMLDocument* target) const
866{
867 XMLNode* clone = this->ShallowClone(target);
868 if (!clone) return 0;
869
870 for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) {
871 XMLNode* childClone = child->DeepClone(target);
872 TIXMLASSERT(childClone);
873 clone->InsertEndChild(childClone);
874 }
875 return clone;
876}
877
878void XMLNode::DeleteChildren()
879{

Callers 2

DeepCopyMethod · 0.80
writeTreeXSDFunction · 0.80

Calls 2

ShallowCloneMethod · 0.80
InsertEndChildMethod · 0.80

Tested by

no test coverage detected