Base class for all predicates that can have child predicates (e.g. AND/OR) More...
#include <mitkNodePredicateCompositeBase.h>
Public Types | |
typedef NodePredicateCompositeBase | Self |
typedef NodePredicateBase | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
typedef std::list < NodePredicateBase::ConstPointer > | ChildPredicates |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual | ~NodePredicateCompositeBase ()=0 |
Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class. | |
virtual void | AddPredicate (const NodePredicateBase *p) |
Adds a child predicate. | |
virtual void | RemovePredicate (const NodePredicateBase *p) |
Removes a child predicate. | |
virtual ChildPredicates | GetPredicates () const |
Return all child predicates (immutable). | |
Protected Attributes | |
ChildPredicates | m_ChildPredicates |
list of child predicates |
Base class for all predicates that can have child predicates (e.g. AND/OR)
This class provides methods to add and remove child predicates. It is used for predicates that are compositions of other predicates like AND and OR.
Definition at line 34 of file mitkNodePredicateCompositeBase.h.
typedef std::list<NodePredicateBase::ConstPointer> mitk::NodePredicateCompositeBase::ChildPredicates |
Definition at line 37 of file mitkNodePredicateCompositeBase.h.
typedef itk::SmartPointer<const Self> mitk::NodePredicateCompositeBase::ConstPointer |
Reimplemented from mitk::NodePredicateBase.
Reimplemented in mitk::NodePredicateAnd, mitk::NodePredicateNot, and mitk::NodePredicateOr.
Definition at line 37 of file mitkNodePredicateCompositeBase.h.
typedef itk::SmartPointer<Self> mitk::NodePredicateCompositeBase::Pointer |
Reimplemented from mitk::NodePredicateBase.
Reimplemented in mitk::NodePredicateAnd, mitk::NodePredicateNot, and mitk::NodePredicateOr.
Definition at line 37 of file mitkNodePredicateCompositeBase.h.
Reimplemented from mitk::NodePredicateBase.
Reimplemented in mitk::NodePredicateAnd, mitk::NodePredicateNot, and mitk::NodePredicateOr.
Definition at line 37 of file mitkNodePredicateCompositeBase.h.
Reimplemented from mitk::NodePredicateBase.
Reimplemented in mitk::NodePredicateAnd, mitk::NodePredicateNot, and mitk::NodePredicateOr.
Definition at line 37 of file mitkNodePredicateCompositeBase.h.
mitk::NodePredicateCompositeBase::~NodePredicateCompositeBase | ( | ) | [pure virtual] |
Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class.
Definition at line 23 of file mitkNodePredicateCompositeBase.cpp.
{ }
void mitk::NodePredicateCompositeBase::AddPredicate | ( | const NodePredicateBase * | p ) | [virtual] |
Adds a child predicate.
Reimplemented in mitk::NodePredicateNot.
Definition at line 27 of file mitkNodePredicateCompositeBase.cpp.
Referenced by mitk::NodePredicateNot::AddPredicate(), mitk::NodePredicateAnd::NodePredicateAnd(), and mitk::NodePredicateOr::NodePredicateOr().
{ m_ChildPredicates.push_back(p); }
virtual const char* mitk::NodePredicateCompositeBase::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::NodePredicateBase.
Reimplemented in mitk::NodePredicateAnd, mitk::NodePredicateNot, and mitk::NodePredicateOr.
mitk::NodePredicateCompositeBase::ChildPredicates mitk::NodePredicateCompositeBase::GetPredicates | ( | ) | const [virtual] |
Return all child predicates (immutable).
Definition at line 37 of file mitkNodePredicateCompositeBase.cpp.
{ return m_ChildPredicates; }
void mitk::NodePredicateCompositeBase::RemovePredicate | ( | const NodePredicateBase * | p ) | [virtual] |
Removes a child predicate.
Definition at line 32 of file mitkNodePredicateCompositeBase.cpp.
{ m_ChildPredicates.remove(p); }
list of child predicates
Definition at line 60 of file mitkNodePredicateCompositeBase.h.
Referenced by mitk::NodePredicateNot::NodePredicateNot().