RVL::LocalVector< Scalar, DataType > Class Template Reference

Vector in a LocalSpace, which can sensibly return a pointer to its data array - and does so (getData), also has access to its with its dimension (getSize). More...

#include <localspace.hh>

Inheritance diagram for RVL::LocalVector< Scalar, DataType >:

RVL::Vector< Scalar > RVL::Writeable List of all members.

Public Member Functions

 LocalVector (const Vector< Scalar > &v)
 Copy constructor.
 LocalVector (const Space< Scalar > &sp)
 Constructor from Space.
 ~LocalVector ()
size_t getSize () const
 returns dimension
DataType * getData ()
 returns data pointer (array) WWS 26.10.11: nonconst version increments version ref -- as it should, since implicitly invoking this method opens the internal state of the vector to change, as the nonconst return is an lvalue.
DataType const * getData () const

Detailed Description

template<class Scalar, class DataType = Scalar>
class RVL::LocalVector< Scalar, DataType >

Vector in a LocalSpace, which can sensibly return a pointer to its data array - and does so (getData), also has access to its with its dimension (getSize).

Definition at line 85 of file localspace.hh.


Constructor & Destructor Documentation

template<class Scalar, class DataType = Scalar>
RVL::LocalVector< Scalar, DataType >::LocalVector ( const Vector< Scalar > &  v  ) 

Copy constructor.

Uses Vector copy constructor, provides an internal DC pointer which is explicitly local.

Definition at line 97 of file localspace.hh.

template<class Scalar, class DataType = Scalar>
RVL::LocalVector< Scalar, DataType >::LocalVector ( const Space< Scalar > &  sp  ) 

Constructor from Space.

Provides an internal DC pointer which is explicitly local.

Definition at line 110 of file localspace.hh.

template<class Scalar, class DataType = Scalar>
RVL::LocalVector< Scalar, DataType >::~LocalVector (  ) 

Definition at line 121 of file localspace.hh.


Member Function Documentation

template<class Scalar, class DataType = Scalar>
size_t RVL::LocalVector< Scalar, DataType >::getSize (  )  const

returns dimension

Definition at line 124 of file localspace.hh.

template<class Scalar, class DataType = Scalar>
DataType* RVL::LocalVector< Scalar, DataType >::getData (  ) 

returns data pointer (array) WWS 26.10.11: nonconst version increments version ref -- as it should, since implicitly invoking this method opens the internal state of the vector to change, as the nonconst return is an lvalue.

IMPORTANT NOTE: C++ specifies that the least restrictive version, in this case non-const, of each method will be called, consistent with other conditions. Therefore almost any access to data will cause version increment, unless called on a const reference to the vector or within a const function which implicitly makes its reference to this type const.

Definition at line 136 of file localspace.hh.

template<class Scalar, class DataType = Scalar>
DataType const* RVL::LocalVector< Scalar, DataType >::getData (  )  const

Definition at line 137 of file localspace.hh.


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for LocalRVL by  doxygen 1.4.7