Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkNodePredicateCompositeBase.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
14 
15 // for std::find
16 #include <algorithm>
17 
19 {
20 }
21 
23 {
24  m_ChildPredicates.push_back(p);
25 }
26 
28 {
29  m_ChildPredicates.remove(p);
30 }
31 
33 {
34  return m_ChildPredicates;
35 }
~NodePredicateCompositeBase() override=0
Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class...
virtual ChildPredicates GetPredicates() const
Return all child predicates (immutable).
virtual void RemovePredicate(const NodePredicateBase *p)
Removes a child predicate.
ChildPredicates m_ChildPredicates
list of child predicates
virtual void AddPredicate(const NodePredicateBase *p)
Adds a child predicate.
std::list< NodePredicateBase::ConstPointer > ChildPredicates
Interface for evaluation conditions used in the DataStorage class GetSubset() method.