Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitk::NodePredicateFunction Class Reference

Predicate that transfers the check to a specific Callable. More...

#include <mitkNodePredicateFunction.h>

Inheritance diagram for mitk::NodePredicateFunction:
Collaboration diagram for mitk::NodePredicateFunction:

Public Types

using FunctionType = std::function< bool(const mitk::DataNode *)>
 

Public Member Functions

 mitkClassMacro (NodePredicateFunction, NodePredicateBase)
 
 mitkNewMacro1Param (NodePredicateFunction, const FunctionType &)
 
 ~NodePredicateFunction () override
 
bool CheckNode (const mitk::DataNode *node) const override
 This method will be used to evaluate the node. Has to be overwritten in subclasses. More...
 
- Public Member Functions inherited from mitk::NodePredicateBase
 mitkClassMacroItkParent (NodePredicateBase, itk::Object)
 
 ~NodePredicateBase () override
 Standard Destructor. More...
 

Protected Member Functions

 NodePredicateFunction (const FunctionType &function)
 

Protected Attributes

FunctionType m_Function
 

Detailed Description

Predicate that transfers the check to a specific Callable.

Callables include free functions, bound member functions, function objects, and lambda expressions. The signature of the Callable must match NodePredicateFunction::CheckNode.

Definition at line 31 of file mitkNodePredicateFunction.h.

Member Typedef Documentation

◆ FunctionType

using mitk::NodePredicateFunction::FunctionType = std::function<bool (const mitk::DataNode *)>

Definition at line 34 of file mitkNodePredicateFunction.h.

Constructor & Destructor Documentation

◆ ~NodePredicateFunction()

mitk::NodePredicateFunction::~NodePredicateFunction ( )
override

◆ NodePredicateFunction()

mitk::NodePredicateFunction::NodePredicateFunction ( const FunctionType function)
explicitprotected

Member Function Documentation

◆ CheckNode()

bool mitk::NodePredicateFunction::CheckNode ( const mitk::DataNode node) const
overridevirtual

This method will be used to evaluate the node. Has to be overwritten in subclasses.

Implements mitk::NodePredicateBase.

◆ mitkClassMacro()

mitk::NodePredicateFunction::mitkClassMacro ( NodePredicateFunction  ,
NodePredicateBase   
)

◆ mitkNewMacro1Param()

mitk::NodePredicateFunction::mitkNewMacro1Param ( NodePredicateFunction  ,
const FunctionType  
)

Member Data Documentation

◆ m_Function

FunctionType mitk::NodePredicateFunction::m_Function
protected

Definition at line 46 of file mitkNodePredicateFunction.h.


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