Commit f626837a authored by Max Lyon's avatar Max Lyon

add method to explicitely clone named properties

parent 2a773f20
Pipeline #13496 passed with stages
in 240 minutes and 31 seconds
......@@ -253,6 +253,19 @@ class PropertyManager {
}
}
/**
* Create property manager referring to a copy of the current property.
* This can be used to explicitely create a copy of a named property. The cloned property
* will be unnamed.
*/
PropertyManager clone()
{
PropertyManager result(this->mesh());
Storage::copy(*this, result);
return result;
}
PropertyManager& operator=(const PropertyManager& rhs)
{
if (&mesh_ == &rhs.mesh_ && prop_ == rhs.prop_)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment