SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::core::behavior::MultiMatrixAccessor::MatrixRef Class Reference

#include <MultiMatrixAccessor.h>

Simple structure holding a reference to the submatrix related to one MechanicalState. More...

Detailed Description

Simple structure holding a reference to the submatrix related to one MechanicalState.

Public Attributes

linearalgebra::BaseMatrixmatrix
 
unsigned int offset
 

Public Member Functions

 MatrixRef ()
 
constexpr MatrixRef (const MatrixRef &other)=default
 
linearalgebra::BaseMatrixoperator-> () const
 
bool operator! () const
 
 operator bool () const
 
void operator= (const MatrixRef &b)
 

Attribute details

◆ matrix

linearalgebra::BaseMatrix* sofa::core::behavior::MultiMatrixAccessor::MatrixRef::matrix

◆ offset

unsigned int sofa::core::behavior::MultiMatrixAccessor::MatrixRef::offset

Constructor details

◆ MatrixRef() [1/2]

sofa::core::behavior::MultiMatrixAccessor::MatrixRef::MatrixRef ( )
inline

◆ MatrixRef() [2/2]

constexpr sofa::core::behavior::MultiMatrixAccessor::MatrixRef::MatrixRef ( const MatrixRef other)
constexprdefault

Function details

◆ operator bool()

sofa::core::behavior::MultiMatrixAccessor::MatrixRef::operator bool ( ) const
inline

◆ operator!()

bool sofa::core::behavior::MultiMatrixAccessor::MatrixRef::operator! ( ) const
inline

◆ operator->()

linearalgebra::BaseMatrix* sofa::core::behavior::MultiMatrixAccessor::MatrixRef::operator-> ( ) const
inline

◆ operator=()

void sofa::core::behavior::MultiMatrixAccessor::MatrixRef::operator= ( const MatrixRef b)
inline