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

#include <SingleMatrixAccessor.h>

Inheritance diagram for sofa::core::behavior::SingleMatrixAccessor:

Detailed Description

Special case to access a single square matrix.

Protected Attributes

BaseMatrixmatrix
 The single matrix. More...
 
MatrixRef matRef
 The accessor to the single matrix. More...
 

Public Member Functions

 SingleMatrixAccessor (BaseMatrix *m=nullptr)
 
 ~SingleMatrixAccessor () override
 
void setMatrix (BaseMatrix *m)
 
BaseMatrixgetMatrix ()
 
const BaseMatrixgetMatrix () const
 
Index getGlobalDimension () const override
 
int getGlobalOffset (const core::behavior::BaseMechanicalState *) const override
 
MatrixRef getMatrix (const core::behavior::BaseMechanicalState *) const override
 
InteractionMatrixRef getMatrix (const core::behavior::BaseMechanicalState *mstate1, const core::behavior::BaseMechanicalState *mstate2) const override
 
- Public Member Functions inherited from sofa::core::behavior::MultiMatrixAccessor
virtual ~MultiMatrixAccessor ()
 
virtual void addMechanicalState (const BaseMechanicalState *mstate)
 
virtual void addMechanicalMapping (BaseMapping *mapping)
 
virtual void addMappedMechanicalState (const BaseMechanicalState *mstate)
 

Attribute details

◆ matRef

MatrixRef sofa::core::behavior::SingleMatrixAccessor::matRef
protected

The accessor to the single matrix.

◆ matrix

BaseMatrix* sofa::core::behavior::SingleMatrixAccessor::matrix
protected

The single matrix.

Constructor details

◆ SingleMatrixAccessor()

sofa::core::behavior::SingleMatrixAccessor::SingleMatrixAccessor ( BaseMatrix m = nullptr)
inline

◆ ~SingleMatrixAccessor()

sofa::core::behavior::SingleMatrixAccessor::~SingleMatrixAccessor ( )
override

Function details

◆ getGlobalDimension()

Index sofa::core::behavior::SingleMatrixAccessor::getGlobalDimension ( ) const
inlineoverridevirtual

◆ getGlobalOffset()

int sofa::core::behavior::SingleMatrixAccessor::getGlobalOffset ( const core::behavior::BaseMechanicalState ) const
inlineoverridevirtual

◆ getMatrix() [1/4]

BaseMatrix* sofa::core::behavior::SingleMatrixAccessor::getMatrix ( )
inline

◆ getMatrix() [2/4]

const BaseMatrix* sofa::core::behavior::SingleMatrixAccessor::getMatrix ( ) const
inline

◆ getMatrix() [3/4]

SingleMatrixAccessor::MatrixRef sofa::core::behavior::SingleMatrixAccessor::getMatrix ( const core::behavior::BaseMechanicalState ) const
overridevirtual

◆ getMatrix() [4/4]

SingleMatrixAccessor::InteractionMatrixRef sofa::core::behavior::SingleMatrixAccessor::getMatrix ( const core::behavior::BaseMechanicalState mstate1,
const core::behavior::BaseMechanicalState mstate2 
) const
overridevirtual

◆ setMatrix()

void sofa::core::behavior::SingleMatrixAccessor::setMatrix ( BaseMatrix m)