Medical Imaging Interaction Toolkit  2023.04.00
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 *)>
 
typedef NodePredicateFunction Self
 
typedef NodePredicateBase Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::NodePredicateBase
typedef NodePredicateBase Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
 ~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
 ~NodePredicateBase () override
 Standard Destructor. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New (const FunctionType &_arg)
 
- Static Public Member Functions inherited from mitk::NodePredicateBase
static const char * GetStaticNameOfClass ()
 

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

◆ ConstPointer

◆ FunctionType

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

Definition at line 34 of file mitkNodePredicateFunction.h.

◆ Pointer

◆ Self

◆ Superclass

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.

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::NodePredicateFunction::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::NodePredicateBase.

Definition at line 36 of file mitkNodePredicateFunction.h.

◆ GetClassName()

virtual const char* mitk::NodePredicateFunction::GetClassName ( ) const
virtual

Reimplemented from mitk::NodePredicateBase.

◆ GetStaticNameOfClass()

static const char* mitk::NodePredicateFunction::GetStaticNameOfClass ( )
inlinestatic

Definition at line 36 of file mitkNodePredicateFunction.h.

◆ New()

static Pointer mitk::NodePredicateFunction::New ( const FunctionType _arg)
inlinestatic

Definition at line 37 of file mitkNodePredicateFunction.h.

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: