MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / findChild

Method findChild

tests/catch.hpp:11708–11718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11706 }
11707
11708 ITrackerPtr TrackerBase::findChild( NameAndLocation const& nameAndLocation ) {
11709 auto it = std::find_if( m_children.begin(), m_children.end(),
11710 [&nameAndLocation]( ITrackerPtr const& tracker ){
11711 return
11712 tracker->nameAndLocation().location == nameAndLocation.location &&
11713 tracker->nameAndLocation().name == nameAndLocation.name;
11714 } );
11715 return( it != m_children.end() )
11716 ? *it
11717 : nullptr;
11718 }
11719 ITracker& TrackerBase::parent() {
11720 assert( m_parent ); // Should always be non-null except for root
11721 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