MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / findChild

Method findChild

extlibs/catch/include/catch/catch.hpp:13796–13806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13794 }
13795
13796 ITrackerPtr TrackerBase::findChild( NameAndLocation const& nameAndLocation ) {
13797 auto it = std::find_if( m_children.begin(), m_children.end(),
13798 [&nameAndLocation]( ITrackerPtr const& tracker ){
13799 return
13800 tracker->nameAndLocation().location == nameAndLocation.location &&
13801 tracker->nameAndLocation().name == nameAndLocation.name;
13802 } );
13803 return( it != m_children.end() )
13804 ? *it
13805 : nullptr;
13806 }
13807 ITracker& TrackerBase::parent() {
13808 assert( m_parent ); // Should always be non-null except for root
13809 return *m_parent;

Callers 2

GeneratorTrackerClass · 0.80
catch.hppFile · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected