36 if (m_ChildPredicates.empty())
37 throw std::invalid_argument(
"NodePredicateOr: no child predicates available");
40 throw std::invalid_argument(
"NodePredicateOr: invalid node");
44 for (
auto it = m_ChildPredicates.cbegin(); it != m_ChildPredicates.cend(); ++it)
45 if ((*it)->CheckNode(node) ==
true)
virtual bool CheckNode(const DataNode *node) const override
Checks, if the node fulfills any of the subpredicates conditions.
virtual void AddPredicate(const NodePredicateBase *p)
Adds a child predicate.
NodePredicateOr()
Constructor.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Base class for all predicates that can have child predicates (e.g. AND/OR)
virtual ~NodePredicateOr()
Standard Destructor.
Class for nodes of the DataTree.