#include <RTOpPack_Types.hpp>
Inheritance diagram for RTOpPack::SubVectorView< Scalar >:

Public Member Functions | |
| SubVectorView () | |
| | |
| SubVectorView (const ArrayRCP< Scalar > &values_in) | |
| | |
| SubVectorView (Teuchos_Index globalOffset_in, Teuchos_Index subDim_in, const ArrayRCP< Scalar > &values_in, ptrdiff_t stride_in) | |
| | |
| SubVectorView (Teuchos_Index subDim_in) | |
| | |
| SubVectorView (const SubVectorView< Scalar > &sv) | |
| | |
| void | initialize (Teuchos_Index globalOffset_in, Teuchos_Index subDim_in, const ArrayRCP< Scalar > &values_in, ptrdiff_t stride_in) |
| | |
| const ArrayRCP< Scalar > | values () const |
| | |
| Scalar & | operator[] (Teuchos_Index i) const |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())). | |
| Scalar & | operator() (Teuchos_Index i) const |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())). | |
| SubVectorView (Teuchos_Index globalOffset_in, Teuchos_Index subDim_in, Scalar values_in[], ptrdiff_t stride_in) | |
| Deprecated. | |
| void | initialize (Teuchos_Index globalOffset_in, Teuchos_Index subDim_in, Scalar values_in[], ptrdiff_t stride_in) |
| Deprecated. | |
This class derives from ConstSubVectorView and adds methods to change the data. Note, a const SubVectorView object allows clients to change the values in the underlying subvector. The meaning of const in this context is that the view of the data can not change.
WARNING! the default copy constructor and assignment operators are allowed which results in only pointer copy, not deep copy. This means this class has shallow copy semantics. You have been warned!
NOTE: It is perfectly safe to derive this class from ConstSubVectorView even through it does not have a virtual destructor. That is because this derived class has no data members that would cause problems in slicing or memory leaks when deleting.
Definition at line 247 of file RTOpPack_Types.hpp.
| RTOpPack::SubVectorView< Scalar >::SubVectorView | ( | ) | [inline] |
| RTOpPack::SubVectorView< Scalar >::SubVectorView | ( | const ArrayRCP< Scalar > & | values_in | ) | [inline] |
| RTOpPack::SubVectorView< Scalar >::SubVectorView | ( | Teuchos_Index | globalOffset_in, | |
| Teuchos_Index | subDim_in, | |||
| const ArrayRCP< Scalar > & | values_in, | |||
| ptrdiff_t | stride_in | |||
| ) | [inline] |
| RTOpPack::SubVectorView< Scalar >::SubVectorView | ( | Teuchos_Index | subDim_in | ) | [inline] |
| RTOpPack::SubVectorView< Scalar >::SubVectorView | ( | const SubVectorView< Scalar > & | sv | ) | [inline] |
| RTOpPack::SubVectorView< Scalar >::SubVectorView | ( | Teuchos_Index | globalOffset_in, | |
| Teuchos_Index | subDim_in, | |||
| Scalar | values_in[], | |||
| ptrdiff_t | stride_in | |||
| ) | [inline] |
| void RTOpPack::SubVectorView< Scalar >::initialize | ( | Teuchos_Index | globalOffset_in, | |
| Teuchos_Index | subDim_in, | |||
| const ArrayRCP< Scalar > & | values_in, | |||
| ptrdiff_t | stride_in | |||
| ) | [inline] |
| const ArrayRCP<Scalar> RTOpPack::SubVectorView< Scalar >::values | ( | ) | const [inline] |
Reimplemented from RTOpPack::ConstSubVectorView< Scalar >.
Definition at line 273 of file RTOpPack_Types.hpp.
| Scalar& RTOpPack::SubVectorView< Scalar >::operator[] | ( | Teuchos_Index | i | ) | const [inline] |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())).
Reimplemented from RTOpPack::ConstSubVectorView< Scalar >.
Definition at line 277 of file RTOpPack_Types.hpp.
| Scalar& RTOpPack::SubVectorView< Scalar >::operator() | ( | Teuchos_Index | i | ) | const [inline] |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())).
Reimplemented from RTOpPack::ConstSubVectorView< Scalar >.
Definition at line 281 of file RTOpPack_Types.hpp.
| void RTOpPack::SubVectorView< Scalar >::initialize | ( | Teuchos_Index | globalOffset_in, | |
| Teuchos_Index | subDim_in, | |||
| Scalar | values_in[], | |||
| ptrdiff_t | stride_in | |||
| ) | [inline] |
Deprecated.
Reimplemented from RTOpPack::ConstSubVectorView< Scalar >.
Definition at line 289 of file RTOpPack_Types.hpp.
1.4.7