SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::linearalgebra::BaseMatrix::BlockConstAccessor Class Reference

#include <BaseMatrix.h>

Protected Attributes

const BaseMatrixmatrix
 
InternalBlockAccessor internal
 

Public Member Functions

 ~BlockConstAccessor ()
 
 BlockConstAccessor (const BlockConstAccessor &b)
 
 BlockConstAccessor (const BlockAccessor &b)
 
void operator= (const BlockConstAccessor &b)
 
void operator= (const BlockAccessor &b)
 
Index getRow () const
 
Index getCol () const
 
const BaseMatrixgetMatrix () const
 
bool isValid () const
 
SReal element (Index i, Index j) const
 Read the value of the element at row i, column j within this block (using 0-based indices) More...
 
const floatelements (float *dest) const
 Read all values from this block into given float buffer, or return the pointer to the buffer data if the in-memory format is compatible. More...
 
const double * elements (double *dest) const
 Read all values from this block into given double buffer, or return the pointer to the buffer data if the in-memory format is compatible. More...
 
const int * elements (int *dest) const
 Read all values from this block into given int buffer, or return the pointer to the buffer data if the in-memory format is compatible. More...
 

Protected Member Functions

 BlockConstAccessor ()
 
 BlockConstAccessor (const BaseMatrix *matrix, Index row, Index col, void *internalPtr)
 
 BlockConstAccessor (const BaseMatrix *matrix, Index row, Index col, Index internalData)
 

Friends

class BaseMatrix
 
class ColBlockConstIterator
 

Attribute details

◆ internal

InternalBlockAccessor sofa::linearalgebra::BaseMatrix::BlockConstAccessor::internal
protected

◆ matrix

const BaseMatrix* sofa::linearalgebra::BaseMatrix::BlockConstAccessor::matrix
protected

Constructor details

◆ BlockConstAccessor() [1/5]

sofa::linearalgebra::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( )
inlineprotected

◆ BlockConstAccessor() [2/5]

sofa::linearalgebra::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BaseMatrix matrix,
Index  row,
Index  col,
void *  internalPtr 
)
inlineprotected

◆ BlockConstAccessor() [3/5]

sofa::linearalgebra::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BaseMatrix matrix,
Index  row,
Index  col,
Index  internalData 
)
inlineprotected

◆ ~BlockConstAccessor()

sofa::linearalgebra::BaseMatrix::BlockConstAccessor::~BlockConstAccessor ( )
inline

◆ BlockConstAccessor() [4/5]

sofa::linearalgebra::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BlockConstAccessor b)
inline

◆ BlockConstAccessor() [5/5]

sofa::linearalgebra::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BlockAccessor b)
inline

Function details

◆ element()

SReal sofa::linearalgebra::BaseMatrix::BlockConstAccessor::element ( Index  i,
Index  j 
) const
inline

Read the value of the element at row i, column j within this block (using 0-based indices)

◆ elements() [1/3]

const double* sofa::linearalgebra::BaseMatrix::BlockConstAccessor::elements ( double *  dest) const
inline

Read all values from this block into given double buffer, or return the pointer to the buffer data if the in-memory format is compatible.

◆ elements() [2/3]

const float* sofa::linearalgebra::BaseMatrix::BlockConstAccessor::elements ( float dest) const
inline

Read all values from this block into given float buffer, or return the pointer to the buffer data if the in-memory format is compatible.

◆ elements() [3/3]

const int* sofa::linearalgebra::BaseMatrix::BlockConstAccessor::elements ( int *  dest) const
inline

Read all values from this block into given int buffer, or return the pointer to the buffer data if the in-memory format is compatible.

◆ getCol()

Index sofa::linearalgebra::BaseMatrix::BlockConstAccessor::getCol ( ) const
inline

◆ getMatrix()

const BaseMatrix* sofa::linearalgebra::BaseMatrix::BlockConstAccessor::getMatrix ( ) const
inline

◆ getRow()

Index sofa::linearalgebra::BaseMatrix::BlockConstAccessor::getRow ( ) const
inline

◆ isValid()

bool sofa::linearalgebra::BaseMatrix::BlockConstAccessor::isValid ( ) const
inline

◆ operator=() [1/2]

void sofa::linearalgebra::BaseMatrix::BlockConstAccessor::operator= ( const BlockAccessor b)
inline

◆ operator=() [2/2]

void sofa::linearalgebra::BaseMatrix::BlockConstAccessor::operator= ( const BlockConstAccessor b)
inline

Related details

◆ BaseMatrix

friend class BaseMatrix
friend

◆ ColBlockConstIterator

friend class ColBlockConstIterator
friend