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

Method Accept

3rdparty/tinyxml2/tinyxml2.cpp:782–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

780
781
782bool XMLDocument::Accept( XMLVisitor* visitor ) const
783{
784 TIXMLASSERT( visitor );
785 if ( visitor->VisitEnter( *this ) ) {
786 for ( const XMLNode* node=FirstChild(); node; node=node->NextSibling() ) {
787 if ( !node->Accept( visitor ) ) {
788 break;
789 }
790 }
791 }
792 return visitor->VisitExit( *this );
793}
794
795
796// --------- XMLNode ----------- //

Callers

nothing calls this directly

Calls 4

FirstChildFunction · 0.85
VisitEnterMethod · 0.80
VisitExitMethod · 0.80
VisitMethod · 0.80

Tested by

no test coverage detected