16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_PARAM_NODE_NODEUTILS_H
21 #define BORNAGAIN_PARAM_NODE_NODEUTILS_H
33 std::vector<const T*> result;
35 if (
const auto* t =
dynamic_cast<const T*
>(p_child))
44 const auto list = ChildNodesOfType<T>(node);
53 std::vector<const T*> result;
56 if (
const auto* t =
dynamic_cast<const T*
>(child))
58 for (
const auto* t : AllDescendantsOfType<T>(*child))
Defines the macro ASSERT.
#define ASSERT(condition)
Base class for tree-like structures containing parameterized objects.
virtual std::vector< const INode * > nodeChildren() const
Returns all children.
std::vector< const T * > ChildNodesOfType(const INode &node)
std::vector< const T * > AllDescendantsOfType(const INode &node)
const T * OnlyChildOfType(const INode &node)