Commit 7838ad7e authored by Jan Möbius's avatar Jan Möbius

Merge branch 'clone_named_properties' into 'master'

add method to explicitely clone named properties

See merge request !249
parents 2a773f20 f626837a
Pipeline #13500 passed with stages
in 240 minutes and 42 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