Implementation of the IPropertyTransience service interface.
More...
#include <mitkPropertyTransience.h>
|
| void | InternalAddTransient (const std::string &propertyName, std::function< bool(const BaseData *)> dataTypeMatcher) override |
| | Register a transient property with a data-type matcher. More...
|
| |
Implementation of the IPropertyTransience service interface.
Holds a list of (property name, data-type matcher) rules and reports a property as transient if any rule for that name matches the queried data.
- See also
- IPropertyTransience
Definition at line 30 of file mitkPropertyTransience.h.
◆ PropertyTransience() [1/2]
| mitk::PropertyTransience::PropertyTransience |
( |
| ) |
|
◆ ~PropertyTransience()
| mitk::PropertyTransience::~PropertyTransience |
( |
| ) |
|
|
override |
◆ PropertyTransience() [2/2]
◆ InternalAddTransient()
| void mitk::PropertyTransience::InternalAddTransient |
( |
const std::string & |
propertyName, |
|
|
std::function< bool(const BaseData *)> |
dataTypeMatcher |
|
) |
| |
|
overrideprotectedvirtual |
Register a transient property with a data-type matcher.
Called by the public AddTransient() template.
- Parameters
-
| [in] | propertyName | Name of the transient property. |
| [in] | dataTypeMatcher | Predicate returning true if the rule applies to the passed BaseData. |
Implements mitk::IPropertyTransience.
◆ IsTransient()
| bool mitk::PropertyTransience::IsTransient |
( |
const BaseData * |
data, |
|
|
const std::string & |
propertyName |
|
) |
| const |
|
overridevirtual |
Check whether a property is transient for the given node data.
- Parameters
-
| [in] | data | The node's BaseData. May be null (e.g. a data-less node); rules registered for mitk::BaseData still match, type-specific rules do not. |
| [in] | propertyName | Name of the property to check. |
- Returns
- True if any registered rule for propertyName matches the data type.
Implements mitk::IPropertyTransience.
◆ operator=()
The documentation for this class was generated from the following file: