RTOpPack: Extra C/C++ Code for Vector Reduction/Transformation Operators  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
RTOpPack::MutableSubVectorT1B< Scalar > Class Template Reference

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

#include <RTOpPack_OldTypes.hpp>

Inheritance diagram for RTOpPack::MutableSubVectorT1B< Scalar >:
Inheritance graph
[legend]

Public Member Functions

 MutableSubVectorT1B ()
 
 MutableSubVectorT1B (Teuchos_Ordinal globalOffset, Teuchos_Ordinal subDim, Scalar *values, ptrdiff_t stride)
 
 MutableSubVectorT1B (const MutableSubVectorT1B< Scalar > &sv)
 
 MutableSubVectorT1B (const SubVectorView< Scalar > &sv)
 
 operator SubVectorView< Scalar > ()
 
void initialize (Teuchos_Ordinal globalOffset, Teuchos_Ordinal subDim, Scalar *values, ptrdiff_t stride)
 
void set_uninitialized ()
 
Scalar * values () const
 
const Teuchos::ArrayRCP< Scalar > arcp_values () const
 
Scalar & operator[] (Teuchos_Ordinal i) const
 Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())) More...
 
Scalar & operator() (Teuchos_Ordinal i) const
 One-based indexing (Preconditions: values()!=NULL && (1 <= i <= subDim())) More...
 
- Public Member Functions inherited from RTOpPack::SubVectorT1B< Scalar >
 SubVectorT1B ()
 
 SubVectorT1B (Teuchos_Ordinal globalOffset, Teuchos_Ordinal subDim, const Scalar *values, ptrdiff_t stride)
 
 SubVectorT1B (const SubVectorT1B< Scalar > &sv)
 
 SubVectorT1B (const ConstSubVectorView< Scalar > &sv)
 
 operator ConstSubVectorView< Scalar > ()
 
void initialize (Teuchos_Ordinal globalOffset, Teuchos_Ordinal subDim, const Scalar *values, ptrdiff_t stride)
 
void set_uninitialized ()
 
void setGlobalOffset (Teuchos_Ordinal globalOffset)
 
Teuchos_Ordinal globalOffset () const
 
Teuchos_Ordinal subDim () const
 
const Scalar * values () const
 
const Teuchos::ArrayRCP< const
Scalar > 
arcp_values () const
 
ptrdiff_t stride () const
 
const Scalar & operator[] (Teuchos_Ordinal i) const
 Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())) More...
 
const Scalar & operator() (Teuchos_Ordinal i) const
 One-based indexing (Preconditions: values()!=NULL && (1 <= i <= subDim())) More...
 

Detailed Description

template<class Scalar>
class RTOpPack::MutableSubVectorT1B< Scalar >

Class for a mutable sub-vector.

Definition at line 116 of file RTOpPack_OldTypes.hpp.

Constructor & Destructor Documentation

template<class Scalar>
RTOpPack::MutableSubVectorT1B< Scalar >::MutableSubVectorT1B ( )
inline

Definition at line 119 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
RTOpPack::MutableSubVectorT1B< Scalar >::MutableSubVectorT1B ( Teuchos_Ordinal  globalOffset,
Teuchos_Ordinal  subDim,
Scalar *  values,
ptrdiff_t  stride 
)
inline

Definition at line 121 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
RTOpPack::MutableSubVectorT1B< Scalar >::MutableSubVectorT1B ( const MutableSubVectorT1B< Scalar > &  sv)
inline

Definition at line 125 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
RTOpPack::MutableSubVectorT1B< Scalar >::MutableSubVectorT1B ( const SubVectorView< Scalar > &  sv)
inline

Definition at line 129 of file RTOpPack_OldTypes.hpp.

Member Function Documentation

template<class Scalar>
RTOpPack::MutableSubVectorT1B< Scalar >::operator SubVectorView< Scalar > ( )
inline

Definition at line 133 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
void RTOpPack::MutableSubVectorT1B< Scalar >::initialize ( Teuchos_Ordinal  globalOffset,
Teuchos_Ordinal  subDim,
Scalar *  values,
ptrdiff_t  stride 
)
inline

Definition at line 136 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
void RTOpPack::MutableSubVectorT1B< Scalar >::set_uninitialized ( )
inline

Definition at line 139 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
Scalar* RTOpPack::MutableSubVectorT1B< Scalar >::values ( ) const
inline

Definition at line 142 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
const Teuchos::ArrayRCP<Scalar> RTOpPack::MutableSubVectorT1B< Scalar >::arcp_values ( ) const
inline

Definition at line 144 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
Scalar& RTOpPack::MutableSubVectorT1B< Scalar >::operator[] ( Teuchos_Ordinal  i) const
inline

Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim()))

Definition at line 146 of file RTOpPack_OldTypes.hpp.

template<class Scalar>
Scalar& RTOpPack::MutableSubVectorT1B< Scalar >::operator() ( Teuchos_Ordinal  i) const
inline

One-based indexing (Preconditions: values()!=NULL && (1 <= i <= subDim()))

Definition at line 148 of file RTOpPack_OldTypes.hpp.


The documentation for this class was generated from the following file: