32 const mitk::DataStorage::SetOfObjects::STLContainerType sources =
33 m_DataStorage->GetSources(childNode,
nullptr, !m_SearchAllSources)->CastToSTLConstContainer();
35 return std::find(sources.cbegin(), sources.cend(), m_BaseNode) != sources.cend();
Data management class that handles 'was created by' relations.
NodePredicateSource(mitk::DataNode *n, bool allsources, mitk::DataStorage *ds)
Constructor - This class can either search only for direct source objects or for all source objects...
mitk::DataStorage::Pointer m_DataStorage
virtual bool CheckNode(const mitk::DataNode *childNode) const override
Checks, if m_BaseNode is a source node of childNode (e.g. if childNode "was created from" m_BaseNode)...
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
virtual ~NodePredicateSource()
Standard Destructor.
Class for nodes of the DataTree.