SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::core::objectmodel::DataValue< T, CopyOnWrite > Class Template Reference

#include <Data.h>

Inheritance diagram for sofa::core::objectmodel::DataValue< T, CopyOnWrite >:

Detailed Description

template<class T, bool CopyOnWrite>
class sofa::core::objectmodel::DataValue< 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)