AbstractLinAlgPack::VectorDenseMutableEncap Class Reference

Extract a non-const DenseLinAlgPack::DVectorSlice view of a VectorMutable object. More...

#include <AbstractLinAlgPack_VectorDenseEncap.hpp>

List of all members.

Public Member Functions

 VectorDenseMutableEncap (VectorMutable &vec)
 Calls vec.get_sub_vector(Range1D(),&sub_vec) to get the view.
 ~VectorDenseMutableEncap ()
 Calls vec.commit_sub_vector(&sub_vec) to release the view.
DVectorSliceoperator() ()
 Returns a reference to a constant view of the dense vector.
const DVectorSliceoperator() () const
 Returns a reference to a non-const view of the dense vector.

Private Member Functions

 VectorDenseMutableEncap ()
 VectorDenseMutableEncap (const VectorDenseMutableEncap &)
VectorDenseMutableEncapoperator= (const VectorDenseMutableEncap &)

Private Attributes

VectorMutablevec_
RTOpPack::MutableSubVector sub_vec_
DVectorSlice vs_


Detailed Description

Extract a non-const DenseLinAlgPack::DVectorSlice view of a VectorMutable object.

This utility class is defined purly in terms of the abstract interfaces. It is only to be used as an automatic variable on the stack. Note that the underlying VectorMutable object is not guarrenteed to be modified until the destructor for this is called.

Definition at line 62 of file AbstractLinAlgPack_VectorDenseEncap.hpp.


Constructor & Destructor Documentation

AbstractLinAlgPack::VectorDenseMutableEncap::VectorDenseMutableEncap ( VectorMutable vec  )  [inline]

Calls vec.get_sub_vector(Range1D(),&sub_vec) to get the view.

Definition at line 118 of file AbstractLinAlgPack_VectorDenseEncap.hpp.

AbstractLinAlgPack::VectorDenseMutableEncap::~VectorDenseMutableEncap (  )  [inline]

Calls vec.commit_sub_vector(&sub_vec) to release the view.

Definition at line 131 of file AbstractLinAlgPack_VectorDenseEncap.hpp.

AbstractLinAlgPack::VectorDenseMutableEncap::VectorDenseMutableEncap (  )  [private]

AbstractLinAlgPack::VectorDenseMutableEncap::VectorDenseMutableEncap ( const VectorDenseMutableEncap  )  [private]


Member Function Documentation

DVectorSlice & AbstractLinAlgPack::VectorDenseMutableEncap::operator() (  )  [inline]

Returns a reference to a constant view of the dense vector.

Definition at line 137 of file AbstractLinAlgPack_VectorDenseEncap.hpp.

const DVectorSlice & AbstractLinAlgPack::VectorDenseMutableEncap::operator() (  )  const [inline]

Returns a reference to a non-const view of the dense vector.

Definition at line 143 of file AbstractLinAlgPack_VectorDenseEncap.hpp.

VectorDenseMutableEncap& AbstractLinAlgPack::VectorDenseMutableEncap::operator= ( const VectorDenseMutableEncap  )  [private]


Member Data Documentation

VectorMutable& AbstractLinAlgPack::VectorDenseMutableEncap::vec_ [private]

Definition at line 76 of file AbstractLinAlgPack_VectorDenseEncap.hpp.

RTOpPack::MutableSubVector AbstractLinAlgPack::VectorDenseMutableEncap::sub_vec_ [private]

Definition at line 77 of file AbstractLinAlgPack_VectorDenseEncap.hpp.

DVectorSlice AbstractLinAlgPack::VectorDenseMutableEncap::vs_ [private]

Definition at line 78 of file AbstractLinAlgPack_VectorDenseEncap.hpp.


The documentation for this class was generated from the following file:
Generated on Wed May 12 21:57:05 2010 for MOOCHO (Single Doxygen Collection) by  doxygen 1.4.7