#include <localspace.hh>
Inheritance diagram for RVL::LocalVector< Scalar, DataType >:
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 |
Definition at line 85 of file localspace.hh.
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.
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.
RVL::LocalVector< Scalar, DataType >::~LocalVector | ( | ) |
Definition at line 121 of file localspace.hh.
size_t RVL::LocalVector< Scalar, DataType >::getSize | ( | ) | const |
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.
DataType const* RVL::LocalVector< Scalar, DataType >::getData | ( | ) | const |
Definition at line 137 of file localspace.hh.