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

#include <VecId.h>

Identify any vector stored in State. More...

Inheritance diagram for sofa::core::TVecId< V_ALL, vaccess >:

Detailed Description

template<VecAccess vaccess>
class sofa::core::TVecId< V_ALL, vaccess >

Identify any vector stored in State.

Public Member Functions

 TVecId ()
 
 TVecId (VecType t, unsigned int i)
 
template<VecType vtype2, VecAccess vaccess2>
 TVecId (const TVecId< vtype2, vaccess2 > &v)
 
template<VecType vtype2, VecAccess vaccess2>
TVecId< V_ALL, vaccess > & operator= (const TVecId< vtype2, vaccess2 > &other)
 
template<VecType vtype2, VecAccess vaccess2>
bool operator== (const TVecId< vtype2, vaccess2 > &v) const
 
template<VecType vtype2, VecAccess vaccess2>
bool operator!= (const TVecId< vtype2, vaccess2 > &v) const
 
bool isNull () const
 
std::string getName () const
 
- Public Member Functions inherited from sofa::core::BaseVecId
VecType getType () const
 
unsigned int getIndex () const
 

Static Public Member Functions

static TVecId null ()
 
- Static Public Member Functions inherited from sofa::core::TStandardVec< V_ALL, vaccess >
static unsigned int getFirstDynamicIndex (VecType t)
 
static std::string getName (const MyVecId &v)
 
- Static Public Member Functions inherited from sofa::core::TStandardVec< V_COORD, vaccess >
static MyVecId position ()
 
static MyVecId restPosition ()
 
static MyVecId freePosition ()
 
static MyVecId resetPosition ()
 
static std::string getName (const MyVecId &v)
 
- Static Public Member Functions inherited from sofa::core::TStandardVec< V_DERIV, vaccess >
static MyVecId velocity ()
 
static MyVecId resetVelocity ()
 
static MyVecId freeVelocity ()
 
static MyVecId normal ()
 
static MyVecId force ()
 
static MyVecId externalForce ()
 
static MyVecId dx ()
 
static MyVecId dforce ()
 
static std::string getName (const MyVecId &v)
 
- Static Public Member Functions inherited from sofa::core::TStandardVec< V_MATDERIV, vaccess >
static MyVecId constraintJacobian ()
 
static MyVecId mappingJacobian ()
 
static MyVecId holonomicC ()
 
static std::string getName (const MyVecId &v)
 

Friends

std::ostream & operator<< (std::ostream &out, const TVecId &v)
 

Additional Inherited Members

- Public Attributes inherited from sofa::core::BaseVecId
VecType type
 
unsigned int index
 
- Protected Member Functions inherited from sofa::core::BaseVecId
 BaseVecId (VecType t, unsigned int i)
 

Constructor details

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

Create a generic VecId from a specific or generic one, with the constraint that the access must be compatible (i.e. cannot create a write-access VecId from a read-only VecId.

Function details

template<VecAccess vaccess>
std::string sofa::core::TVecId< V_ALL, vaccess >::getName ( ) const
inline
template<VecAccess vaccess>
bool sofa::core::TVecId< V_ALL, vaccess >::isNull ( ) const
inline
template<VecAccess vaccess>
static TVecId sofa::core::TVecId< V_ALL, vaccess >::null ( )
inlinestatic
template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
bool sofa::core::TVecId< V_ALL, vaccess >::operator!= ( const TVecId< vtype2, vaccess2 > &  v) const
inline
template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
TVecId<V_ALL, vaccess>& sofa::core::TVecId< V_ALL, vaccess >::operator= ( const TVecId< vtype2, vaccess2 > &  other)
inline
template<VecAccess vaccess>
template<VecType vtype2, VecAccess vaccess2>
bool sofa::core::TVecId< V_ALL, vaccess >::operator== ( const TVecId< vtype2, vaccess2 > &  v) const
inline

Related details

template<VecAccess vaccess>
std::ostream& operator<< ( std::ostream &  out,
const TVecId< V_ALL, vaccess > &  v 
)
friend