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

Method InsertEndChild

3rdparty/tinyxml2/tinyxml2.cpp:925–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923
924
925XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
926{
927 TIXMLASSERT( addThis );
928 if ( addThis->_document != _document ) {
929 TIXMLASSERT( false );
930 return 0;
931 }
932 InsertChildPreamble( addThis );
933
934 if ( _lastChild ) {
935 TIXMLASSERT( _firstChild );
936 TIXMLASSERT( _lastChild->_next == 0 );
937 _lastChild->_next = addThis;
938 addThis->_prev = _lastChild;
939 _lastChild = addThis;
940
941 addThis->_next = 0;
942 }
943 else {
944 TIXMLASSERT( _firstChild == 0 );
945 _firstChild = _lastChild = addThis;
946
947 addThis->_prev = 0;
948 addThis->_next = 0;
949 }
950 addThis->_parent = this;
951 return addThis;
952}
953
954
955XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis )

Callers 6

DeepCloneMethod · 0.80
DeepCopyMethod · 0.80
addNodeModelToXMLFunction · 0.80
addTreeToXMLFunction · 0.80
writeTreeNodesModelXMLFunction · 0.80
writeTreeXSDFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected