MCPcopy Create free account
hub / github.com/MITK/MITK / PropertyIsOwned

Method PropertyIsOwned

Modules/Core/src/DataManagement/mitkIPropertyOwner.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool mitk::IPropertyOwner::PropertyIsOwned(const std::string& propertyKey,
20 const std::string& contextName /* = "" */,
21 bool fallBackOnDefaultContext /* = true */) const
22{
23 auto keys = this->GetPropertyKeys(contextName, fallBackOnDefaultContext);
24
25 if (std::find(keys.begin(), keys.end(), propertyKey) != keys.end())
26 return true;
27 else
28 return false;
29}

Callers 2

OnNodeAddedToStorageMethod · 0.80
bind_property_ownerFunction · 0.80

Calls 3

GetPropertyKeysMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected