SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::WriteAccessor< core::objectmodel::Data< T > > Class Template Reference

#include <Data.h>

Inheritance diagram for sofa::helper::WriteAccessor< core::objectmodel::Data< T > >:

Detailed Description

template<class T>
class sofa::helper::WriteAccessor< core::objectmodel::Data< T > >

Read/Write Accessor. The Data is updated before being accessible. This means an expensive chain of Data link and Engine updates can be called For a pure write only Accessor, prefer WriteOnlyAccessor< core::objectmodel::Data<T> >

Warning
the Data is updated (if needed) only by the Accessor constructor

Protected Attributes

data_container_typedata
 
- Protected Attributes inherited from sofa::helper::WriteAccessor< T >
container_typevref
 

Public Member Functions

 WriteAccessor (const WriteAccessor &)
 
WriteAccessoroperator= (const WriteAccessor &)
 
 WriteAccessor (data_container_type &d)
 
 WriteAccessor (data_container_type *d)
 
 WriteAccessor (const core::ExecParams *, data_container_type &d)
 
 WriteAccessor (const core::ExecParams *, data_container_type *d)
 
 ~WriteAccessor ()
 
- Public Member Functions inherited from sofa::helper::WriteAccessor< T >
 WriteAccessor (container_type &container)
 
const_reference ref () const
 
reference wref ()
 
 operator const_reference () const
 
const_pointer operator-> () const
 
const_reference operator* () const
 
 operator reference ()
 
pointer operator-> ()
 
reference operator* ()
 
template<class T2 >
void operator= (const T2 &v)
 

Protected Member Functions

 WriteAccessor (container_type *c, data_container_type &d)
 

Attribute details

template<class T >
data_container_type& sofa::helper::WriteAccessor< core::objectmodel::Data< T > >::data
protected

Constructor details

template<class T >
sofa::helper::WriteAccessor< core::objectmodel::Data< T > >::WriteAccessor ( container_type c,
data_container_type d 
)
inlineprotected
template<class T >
sofa::helper::WriteAccessor< core::objectmodel::Data< T > >::~WriteAccessor ( )
inline

Function details

template<class T >
WriteAccessor& sofa::helper::WriteAccessor< core::objectmodel::Data< T > >::operator= ( const WriteAccessor< core::objectmodel::Data< T > > &  )