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

Function findChild

pdal/Metadata.hpp:699–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

697
698 template <typename PREDICATE>
699 MetadataNode findChild(PREDICATE p) const
700 {
701 auto nodes = children();
702 for (auto ai = nodes.begin(); ai != nodes.end(); ++ai)
703 {
704 MetadataNode& n = *ai;
705 if (p(n))
706 return n;
707 }
708 return MetadataNode();
709 }
710
711 MetadataNode findChild(const char *s) const
712 { return findChild(std::string(s)); }

Callers

nothing calls this directly

Calls 8

childrenFunction · 0.85
MetadataNodeFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected