SOFA API  3944ba52
Open source framework for multi-physics simuation
sofa::core::TMultiVecId< V_ALL, vaccess > Class Template Reference

#include <MultiVecId.h>

Protected Attributes

MyVecId defaultId
 

Public Member Functions

bool hasIdMap () const
 
const IdMapgetIdMap () const
 
 TMultiVecId ()
 
template<VecType vtype2, VecAccess vaccess2>
 TMultiVecId (const TVecId< vtype2, vaccess2 > &v)
 
template<VecType vtype2, VecAccess vaccess2>
TMultiVecId< V_ALL, vaccess > & operator= (const TVecId< vtype2, vaccess2 > &v)
 Copy assignment from another VecId. More...
 
 TMultiVecId (const TMultiVecId< V_ALL, vaccess > &mv)
 
TMultiVecId< V_ALL, vaccess > & operator= (const TMultiVecId< V_ALL, vaccess > &mv)
 Copy assignment. More...
 
template<VecType vtype2, VecAccess vaccess2>
 TMultiVecId (const TMultiVecId< vtype2, vaccess2 > &mv)
 
template<VecType vtype2, VecAccess vaccess2>
TMultiVecId< V_ALL, vaccess > & operator= (const TMultiVecId< vtype2, vaccess2 > &mv)
 
void setDefaultId (const MyVecId &id)
 
template<class StateSet >
void setId (const StateSet &states, const MyVecId &id)
 
void setId (const BaseState *s, const MyVecId &id)
 
void assign (const MyVecId &id)
 
const MyVecIdgetId (const BaseState *s) const
 
const MyVecIdgetDefaultId () const
 
std::string getName () const
 
bool isNull () const
 
template<class DataTypes >
StateVecAccessor< DataTypes, V_ALL, vaccess > operator[] (State< DataTypes > *s) const
 
template<class DataTypes >
StateVecAccessor< DataTypes, V_ALL, V_READoperator[] (const State< DataTypes > *s) const
 

Static Public Member Functions

static TMultiVecId< V_ALL, vaccess > null ()
 

Protected Member Functions

IdMapwriteIdMap ()
 

Friends

template<VecType vtype2, VecAccess vaccess2>
class TMultiVecId
 
std::ostream & operator<< (std::ostream &out, const TMultiVecId< V_ALL, vaccess > &v)
 

Attribute details

template<VecAccess vaccess>
MyVecId sofa::core::TMultiVecId< V_ALL, vaccess >::defaultId
protected

Constructor details

template<VecAccess vaccess>
sofa::core::TMultiVecId< V_ALL, vaccess >::TMultiVecId ( )
inline
template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
sofa::core::TMultiVecId< V_ALL, vaccess >::TMultiVecId ( const TVecId< vtype2, vaccess2 > &  v)
inline

Copy from another VecId, possibly with another type of access, with the constraint that the access must be compatible (i.e. cannot create a write-access VecId from a read-only VecId.

template<VecAccess vaccess>
sofa::core::TMultiVecId< V_ALL, vaccess >::TMultiVecId ( const TMultiVecId< V_ALL, vaccess > &  mv)
inline
template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
sofa::core::TMultiVecId< V_ALL, vaccess >::TMultiVecId ( const TMultiVecId< vtype2, vaccess2 > &  mv)
inline

Function details

template<VecAccess vaccess>
void sofa::core::TMultiVecId< V_ALL, vaccess >::assign ( const MyVecId id)
inline
template<VecAccess vaccess>
const MyVecId& sofa::core::TMultiVecId< V_ALL, vaccess >::getDefaultId ( ) const
inline
template<VecAccess vaccess>
const MyVecId& sofa::core::TMultiVecId< V_ALL, vaccess >::getId ( const BaseState s) const
inline
template<VecAccess vaccess>
const IdMap& sofa::core::TMultiVecId< V_ALL, vaccess >::getIdMap ( ) const
inline
template<VecAccess vaccess>
std::string sofa::core::TMultiVecId< V_ALL, vaccess >::getName ( ) const
inline
template<VecAccess vaccess>
bool sofa::core::TMultiVecId< V_ALL, vaccess >::hasIdMap ( ) const
inline
template<VecAccess vaccess>
bool sofa::core::TMultiVecId< V_ALL, vaccess >::isNull ( ) const
inline
template<VecAccess vaccess>
static TMultiVecId<V_ALL, vaccess> sofa::core::TMultiVecId< V_ALL, vaccess >::null ( )
inlinestatic
template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
TMultiVecId<V_ALL, vaccess>& sofa::core::TMultiVecId< V_ALL, vaccess >::operator= ( const TVecId< vtype2, vaccess2 > &  v)
inline

Copy assignment from another VecId.

template<VecAccess vaccess>
TMultiVecId<V_ALL, vaccess>& sofa::core::TMultiVecId< V_ALL, vaccess >::operator= ( const TMultiVecId< V_ALL, vaccess > &  mv)
inline

Copy assignment.

template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
TMultiVecId<V_ALL, vaccess>& sofa::core::TMultiVecId< V_ALL, vaccess >::operator= ( const TMultiVecId< vtype2, vaccess2 > &  mv)
inline
template<VecAccess vaccess>
template<class DataTypes >
StateVecAccessor<DataTypes,V_ALL,vaccess> sofa::core::TMultiVecId< V_ALL, vaccess >::operator[] ( State< DataTypes > *  s) const
inline
template<VecAccess vaccess>
template<class DataTypes >
StateVecAccessor<DataTypes,V_ALL,V_READ> sofa::core::TMultiVecId< V_ALL, vaccess >::operator[] ( const State< DataTypes > *  s) const
inline
template<VecAccess vaccess>
void sofa::core::TMultiVecId< V_ALL, vaccess >::setDefaultId ( const MyVecId id)
inline
template<VecAccess vaccess>
template<class StateSet >
void sofa::core::TMultiVecId< V_ALL, vaccess >::setId ( const StateSet &  states,
const MyVecId id 
)
inline
template<VecAccess vaccess>
void sofa::core::TMultiVecId< V_ALL, vaccess >::setId ( const BaseState s,
const MyVecId id 
)
inline
template<VecAccess vaccess>
IdMap& sofa::core::TMultiVecId< V_ALL, vaccess >::writeIdMap ( )
inlineprotected

Related details

template<VecAccess vaccess>
std::ostream& operator<< ( std::ostream &  out,
const TMultiVecId< V_ALL, vaccess > &  v 
)
friend
template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
friend class TMultiVecId
friend