RTOpPack::SubVectorView< Scalar > Class Template Reference

Class for a mutable sub-vector. More...

#include <RTOpPack_Types.hpp>

Inheritance diagram for RTOpPack::SubVectorView< Scalar >:

[legend]
List of all members.

Public Member Functions

 SubVectorView ()
 
 SubVectorView (Teuchos_Index globalOffset, Teuchos_Index subDim, Scalar *values, ptrdiff_t stride)
 
 SubVectorView (const SubVectorView< Scalar > &sv)
 
void initialize (Teuchos_Index globalOffset, Teuchos_Index subDim, Scalar *values, ptrdiff_t stride)
 
void set_uninitialized ()
 
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())).

Detailed Description

template<class Scalar>
class RTOpPack::SubVectorView< Scalar >

Class for a mutable sub-vector.

This class derives from ConstSubVectorView and adds methods to mutate 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! You have been warned!

Definition at line 156 of file RTOpPack_Types.hpp.


Constructor & Destructor Documentation

template<class Scalar>
RTOpPack::SubVectorView< Scalar >::SubVectorView  )  [inline]
 

Definition at line 159 of file RTOpPack_Types.hpp.

template<class Scalar>
RTOpPack::SubVectorView< Scalar >::SubVectorView Teuchos_Index  globalOffset,
Teuchos_Index  subDim,
Scalar *  values,
ptrdiff_t  stride
[inline]
 

Definition at line 161 of file RTOpPack_Types.hpp.

template<class Scalar>
RTOpPack::SubVectorView< Scalar >::SubVectorView const SubVectorView< Scalar > &  sv  )  [inline]
 

Definition at line 165 of file RTOpPack_Types.hpp.


Member Function Documentation

template<class Scalar>
void RTOpPack::SubVectorView< Scalar >::initialize Teuchos_Index  globalOffset,
Teuchos_Index  subDim,
Scalar *  values,
ptrdiff_t  stride
[inline]
 

Definition at line 169 of file RTOpPack_Types.hpp.

template<class Scalar>
void RTOpPack::SubVectorView< Scalar >::set_uninitialized  )  [inline]
 

Reimplemented from RTOpPack::ConstSubVectorView< Scalar >.

Definition at line 172 of file RTOpPack_Types.hpp.

template<class Scalar>
Scalar* RTOpPack::SubVectorView< Scalar >::values  )  const [inline]
 

Reimplemented from RTOpPack::ConstSubVectorView< Scalar >.

Definition at line 175 of file RTOpPack_Types.hpp.

template<class Scalar>
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 177 of file RTOpPack_Types.hpp.

template<class Scalar>
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 179 of file RTOpPack_Types.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:30:38 2008 for Fundamental Vector Reduction/Transformation Operator (RTOp) Interfaces by doxygen 1.3.9.1