TSFExtended::IndexableVector defines an interface through which elements for a vector can be accessed for both reading and writing through indexing operators. More...
Public Member Functions | |
| virtual | ~IndexableVector () |
| virtual dtor | |
| virtual const Scalar & | operator[] (OrdType globalIndex) const =0 |
| read the element at the given global index | |
| virtual Scalar & | operator[] (OrdType globalIndex)=0 |
| writable access to the element at the given global index | |
| virtual void | setElement (OrdType globalIndex, const Scalar &value) |
| set a single element at the given global index | |
| virtual void | addToElement (OrdType globalIndex, const Scalar &value) |
| add to the existing value of a single element at the given global index | |
| virtual const Scalar & | getElement (OrdType globalIndex) const |
| get the element at the given global index | |
TSFExtended::IndexableVector defines an interface through which elements for a vector can be accessed for both reading and writing through indexing operators.
Default implementations of the loadable and accessible interface methods are provided.
Definition at line 54 of file TSFIndexableVector.hpp.
| virtual TSFExtended::IndexableVector< Scalar >::~IndexableVector | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 59 of file TSFIndexableVector.hpp.
| virtual void TSFExtended::IndexableVector< Scalar >::addToElement | ( | OrdType | globalIndex, |
| const Scalar & | value | ||
| ) | [inline, virtual] |
add to the existing value of a single element at the given global index
Implements TSFExtended::LoadableVector< Scalar >.
Reimplemented in TSFExtended::EpetraMultiVector, TSFExtended::EpetraVector, and TSFExtended::SerialVector.
Definition at line 73 of file TSFIndexableVector.hpp.
| virtual const Scalar& TSFExtended::IndexableVector< Scalar >::getElement | ( | OrdType | globalIndex | ) | const [inline, virtual] |
get the element at the given global index
Implements TSFExtended::AccessibleVector< Scalar >.
Reimplemented in TSFExtended::EpetraMultiVector, TSFExtended::EpetraVector, and TSFExtended::SerialVector.
Definition at line 77 of file TSFIndexableVector.hpp.
| virtual Scalar& TSFExtended::IndexableVector< Scalar >::operator[] | ( | OrdType | globalIndex | ) | [pure virtual] |
writable access to the element at the given global index
Implemented in TSFExtended::EpetraMultiVector, TSFExtended::EpetraVector, and TSFExtended::SerialVector.
| virtual const Scalar& TSFExtended::IndexableVector< Scalar >::operator[] | ( | OrdType | globalIndex | ) | const [pure virtual] |
read the element at the given global index
Implemented in TSFExtended::EpetraMultiVector, TSFExtended::EpetraVector, and TSFExtended::SerialVector.
Referenced by TSFExtended::IndexableVector< double >::addToElement(), TSFExtended::IndexableVector< double >::getElement(), and TSFExtended::IndexableVector< double >::setElement().
| virtual void TSFExtended::IndexableVector< Scalar >::setElement | ( | OrdType | globalIndex, |
| const Scalar & | value | ||
| ) | [inline, virtual] |
set a single element at the given global index
Implements TSFExtended::LoadableVector< Scalar >.
Reimplemented in TSFExtended::EpetraMultiVector, TSFExtended::EpetraVector, and TSFExtended::SerialVector.
Definition at line 68 of file TSFIndexableVector.hpp.