Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitk::NodePredicateCompositeBase Class Referenceabstract

Base class for all predicates that can have child predicates (e.g. AND/OR) More...

#include <mitkNodePredicateCompositeBase.h>

Inheritance diagram for mitk::NodePredicateCompositeBase:
Collaboration diagram for mitk::NodePredicateCompositeBase:

Public Types

typedef std::list< NodePredicateBase::ConstPointer > ChildPredicates
 

Public Member Functions

 mitkClassMacro (NodePredicateCompositeBase, NodePredicateBase)
 
 ~NodePredicateCompositeBase () override=0
 Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class. More...
 
virtual void AddPredicate (const NodePredicateBase *p)
 Adds a child predicate. More...
 
virtual void RemovePredicate (const NodePredicateBase *p)
 Removes a child predicate. More...
 
virtual ChildPredicates GetPredicates () const
 Return all child predicates (immutable). More...
 
- Public Member Functions inherited from mitk::NodePredicateBase
 mitkClassMacroItkParent (NodePredicateBase, itk::Object)
 
 ~NodePredicateBase () override
 Standard Destructor. More...
 
virtual bool CheckNode (const mitk::DataNode *node) const =0
 This method will be used to evaluate the node. Has to be overwritten in subclasses. More...
 

Protected Attributes

ChildPredicates m_ChildPredicates
 list of child predicates More...
 

Detailed Description

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 28 of file mitkNodePredicateCompositeBase.h.

Member Typedef Documentation

◆ ChildPredicates

typedef std::list<NodePredicateBase::ConstPointer> mitk::NodePredicateCompositeBase::ChildPredicates

Definition at line 33 of file mitkNodePredicateCompositeBase.h.

Constructor & Destructor Documentation

◆ ~NodePredicateCompositeBase()

mitk::NodePredicateCompositeBase::~NodePredicateCompositeBase ( )
overridepure virtual

Pure virtual (but implemented) Destructor makes NodePredicateCompositeBase an abstract class.

Member Function Documentation

◆ AddPredicate()

virtual void mitk::NodePredicateCompositeBase::AddPredicate ( const NodePredicateBase p)
virtual

Adds a child predicate.

Reimplemented in mitk::NodePredicateNot.

◆ GetPredicates()

virtual ChildPredicates mitk::NodePredicateCompositeBase::GetPredicates ( ) const
virtual

Return all child predicates (immutable).

◆ mitkClassMacro()

mitk::NodePredicateCompositeBase::mitkClassMacro ( NodePredicateCompositeBase  ,
NodePredicateBase   
)

◆ RemovePredicate()

virtual void mitk::NodePredicateCompositeBase::RemovePredicate ( const NodePredicateBase p)
virtual

Removes a child predicate.

Member Data Documentation

◆ m_ChildPredicates

ChildPredicates mitk::NodePredicateCompositeBase::m_ChildPredicates
protected

list of child predicates

Definition at line 54 of file mitkNodePredicateCompositeBase.h.


The documentation for this class was generated from the following file: