16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_CORE_EXPORT_NODEPROGENY_H
21 #define BORNAGAIN_CORE_EXPORT_NODEPROGENY_H
29 std::vector<const T*> result;
31 if (
const auto* t =
dynamic_cast<const T*
>(p_child))
39 const auto list = ChildNodesOfType<T>(node);
47 std::vector<const T*> result;
49 if (
const auto* t =
dynamic_cast<const T*
>(p_child))
51 for (
const auto* t : AllDescendantsOfType<T>(*p_child))
Base class for tree-like structures containing parameterized objects.
virtual std::vector< const INode * > getChildren() const
Returns a vector of children.
std::vector< const T * > AllDescendantsOfType(const INode &node)
std::vector< const T * > ChildNodesOfType(const INode &node)
const T * OnlyChildOfType(const INode &node)