SOFA API  8748a421
Open source framework for multi-physics simuation
sofa::core::StateVecAccessor< DataTypes, vtype, vaccess > Struct Template Reference

#include <MultiVecId.h>

Detailed Description

template<class DataTypes, VecType vtype, VecAccess vaccess>
struct sofa::core::StateVecAccessor< DataTypes, vtype, vaccess >

Identify a vector of a given type stored in multiple State instances This class is templated in order to create different variations (generic versus specific type, read-only vs write access)

Public Attributes

MyVecId id
 

Public Member Functions

 StateVecAccessor (MyStatePtr st, const MyVecId &vecid)
 
 operator MyVecId () const
 
auto * read () const requires(vtype !
 

Attribute details

◆ id

template<class DataTypes , VecType vtype, VecAccess vaccess>
MyVecId sofa::core::StateVecAccessor< DataTypes, vtype, vaccess >::id

Constructor details

◆ StateVecAccessor()

template<class DataTypes , VecType vtype, VecAccess vaccess>
sofa::core::StateVecAccessor< DataTypes, vtype, vaccess >::StateVecAccessor ( MyStatePtr  st,
const MyVecId vecid 
)
inline

Function details

◆ operator MyVecId()

template<class DataTypes , VecType vtype, VecAccess vaccess>
sofa::core::StateVecAccessor< DataTypes, vtype, vaccess >::operator MyVecId ( ) const
inline

◆ read()

template<class DataTypes , VecType vtype, VecAccess vaccess>
auto* sofa::core::StateVecAccessor< DataTypes, vtype, vaccess >::read ( ) const