| 682 | |
| 683 | template <typename PREDICATE> |
| 684 | MetadataNodeList findChildren(PREDICATE p) |
| 685 | { |
| 686 | MetadataNodeList matches; |
| 687 | |
| 688 | auto nodes = children(); |
| 689 | for (auto ai = nodes.begin(); ai != nodes.end(); ++ai) |
| 690 | { |
| 691 | MetadataNode& n = *ai; |
| 692 | if (p(n)) |
| 693 | matches.push_back(n); |
| 694 | } |
| 695 | return matches; |
| 696 | } |
| 697 | |
| 698 | template <typename PREDICATE> |
| 699 | MetadataNode findChild(PREDICATE p) const |