#include <Thyra_SerialVectorBaseDecl.hpp>
Inheritance diagram for Thyra::SerialVectorBase< Scalar >:
Constructors | |
| SerialVectorBase () | |
| | |
Pure virtual methods to be overridden by subclasses | |
| virtual void | getData (Scalar **values, Index *stride)=0 |
Sets a non-const pointer to the beginning of the vector data (and its stride). | |
| virtual void | commitData (Scalar **values)=0 |
Commits updated vector data that was accessed using this->getData(). | |
Virtual methods with default implementations. | |
| virtual void | getData (const Scalar **values, Index *stride) const |
Returns a const pointer to the beginning of the vector data. | |
| virtual void | freeData (const Scalar **values) const |
Frees a const view of vector data that was accessed using this->getData(). | |
Overridden from VectorBase | |
| void | applyOp (const RTOpPack::RTOpT< Scalar > &op, const int num_vecs, const VectorBase< Scalar > *vecs[], const int num_targ_vecs, VectorBase< Scalar > *targ_vecs[], RTOpPack::ReductTarget *reduct_obj, const Index first_ele, const Index sub_dim, const Index global_offset) const |
Implements this method through the methods getSubVector(), freeSubVector() and commitSubVector(). | |
| void | freeSubVector (RTOpPack::SubVectorT< Scalar > *sub_vec) const |
| | |
| void | getSubVector (const Range1D &rng, RTOpPack::MutableSubVectorT< Scalar > *sub_vec) |
| | |
| void | commitSubVector (RTOpPack::MutableSubVectorT< Scalar > *sub_vec) |
| | |
| void | setSubVector (const RTOpPack::SparseSubVectorT< Scalar > &sub_vec) |
| | |
This base subclass contains the an implementation of applyOp() that relies on implementations of the methods getSubVector(), freeSubVector() and commitSubVector(). This class also contains default implementations of getSubVector(), freeSubVector() and commitSubVector().
Notes to subclass developers
All that is needed to develop a concrete subclass is to override the pure virtual functions getData(), commitData() and space() (for which a subclass of SerialVectorSpaceBase should be used).
Definition at line 55 of file Thyra_SerialVectorBaseDecl.hpp.
|
|||||||||
|
Definition at line 40 of file Thyra_SerialVectorBase.hpp. |
|
||||||||||||||||
|
Sets a non-
Postconditions:
Note, the data view returned from this function must be committed back by a call to Implemented in Thyra::SerialVectorStd< Scalar >. |
|
||||||||||
|
Commits updated vector data that was accessed using
Preconditions:
Implemented in Thyra::SerialVectorStd< Scalar >. |
|
||||||||||||||||
|
Returns a
Postconditions:
Note, the data view returned from this function must be freed by a call to
The default implementation performs a Reimplemented in Thyra::SerialVectorStd< Scalar >. Definition at line 47 of file Thyra_SerialVectorBase.hpp. |
|
||||||||||
|
Frees a
Postconditions:
The default implementation performs a Reimplemented in Thyra::SerialVectorStd< Scalar >. Definition at line 53 of file Thyra_SerialVectorBase.hpp. |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Implements this method through the methods
Note that if this method is entered again before a call has been completed, then this is an indication that the methods Definition at line 61 of file Thyra_SerialVectorBase.hpp. |
|
||||||||||
|
Definition at line 114 of file Thyra_SerialVectorBase.hpp. |
|
||||||||||||||||
|
Definition at line 120 of file Thyra_SerialVectorBase.hpp. |
|
||||||||||
|
Definition at line 142 of file Thyra_SerialVectorBase.hpp. |
|
||||||||||
|
Definition at line 148 of file Thyra_SerialVectorBase.hpp. |
1.3.9.1