SOFA API  cd4ffb93
Open source framework for multi-physics simuation
sofa::core::objectmodel::DataContentValue< T, CopyOnWrite > Class Template Reference
Inheritance diagram for sofa::core::objectmodel::DataContentValue< T, CopyOnWrite >:

Detailed Description

template<class T, bool CopyOnWrite>
class sofa::core::objectmodel::DataContentValue< T, CopyOnWrite >

To handle the Data link:

  • CopyOnWrite==false: an independent copy (duplicated memory)
  • CopyOnWrite==true: shared memory while the Data is not modified (in that case the memory is duplicated to get an independent copy)