SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::defaulttype::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 bloc into given float buffer, or return the pointer to the buffer data if the in-memory format is compatible. More...
 
const doubleelements (double *dest) const
 Read all values from this bloc into given double buffer, or return the pointer to the buffer data if the in-memory format is compatible. More...
 
const intelements (int *dest) const
 Read all values from this bloc 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

InternalBlockAccessor sofa::defaulttype::BaseMatrix::BlockConstAccessor::internal
protected
const BaseMatrix* sofa::defaulttype::BaseMatrix::BlockConstAccessor::matrix
protected

Constructor details

sofa::defaulttype::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( )
inlineprotected
sofa::defaulttype::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BaseMatrix matrix,
Index  row,
Index  col,
void *  internalPtr 
)
inlineprotected
sofa::defaulttype::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BaseMatrix matrix,
Index  row,
Index  col,
Index  internalData 
)
inlineprotected
sofa::defaulttype::BaseMatrix::BlockConstAccessor::~BlockConstAccessor ( )
inline
sofa::defaulttype::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BlockConstAccessor b)
inline
sofa::defaulttype::BaseMatrix::BlockConstAccessor::BlockConstAccessor ( const BlockAccessor b)
inline

Function details

SReal sofa::defaulttype::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)

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

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

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

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

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

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

Index sofa::defaulttype::BaseMatrix::BlockConstAccessor::getCol ( ) const
inline
const BaseMatrix* sofa::defaulttype::BaseMatrix::BlockConstAccessor::getMatrix ( ) const
inline
Index sofa::defaulttype::BaseMatrix::BlockConstAccessor::getRow ( ) const
inline
bool sofa::defaulttype::BaseMatrix::BlockConstAccessor::isValid ( ) const
inline
void sofa::defaulttype::BaseMatrix::BlockConstAccessor::operator= ( const BlockConstAccessor b)
inline
void sofa::defaulttype::BaseMatrix::BlockConstAccessor::operator= ( const BlockAccessor b)
inline

Related details

friend class BaseMatrix
friend
friend class ColBlockConstIterator
friend