Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkNodePredicateFunction.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 
16  : m_Function(function)
17 {
18 }
19 
21 {
22 }
23 
25 {
26  return m_Function(node);
27 }
bool CheckNode(const mitk::DataNode *node) const override
This method will be used to evaluate the node. Has to be overwritten in subclasses.
NodePredicateFunction(const FunctionType &function)
std::function< bool(const mitk::DataNode *)> FunctionType
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64