ovector_const_subvector_tlate Class Template Reference

#include <ovector_tlate.h>

Inheritance diagram for ovector_const_subvector_tlate:

ovector_view_tlate

Detailed Description

template<class data_t, class vparent_t, class block_t>
class ovector_const_subvector_tlate< data_t, vparent_t, block_t >

Create a const vector from a subvector of another vector.

Definition at line 1186 of file ovector_tlate.h.


Public Member Functions

 ovector_const_subvector_tlate (const ovector_view_tlate< data_t, vparent_t, block_t > &orig, size_t offset, size_t n)
 Create a vector from orig.
const data_t & operator[] (size_t i) const
 Array-like indexing.

Protected Member Functions

Ensure \c const by hiding non-const members
data_t & operator[] (size_t i)
 Array-like indexing.
data_t & operator() (size_t i)
 Array-like indexing.
data_t * get_ptr (size_t i)
 Get pointer (with optional range-checking).
int set (size_t i, data_t val)
 Set (with optional range-checking).
int swap (ovector_view_tlate< data_t, vparent_t, block_t > &x)
 Swap vectors.
int set_all (double val)
 Set all of the value to be the value val.
vparent_t * get_gsl_vector ()
 Return a gsl vector.
ovector_view_tlate< data_t,
vparent_t, block_t > & 
operator+= (const ovector_view_tlate< data_t, vparent_t, block_t > &x)
 operator+=
ovector_view_tlate< data_t,
vparent_t, block_t > & 
operator-= (const ovector_view_tlate< data_t, vparent_t, block_t > &x)
 operator-=
ovector_view_tlate< data_t,
vparent_t, block_t > & 
operator *= (const data_t &y)
 operator*=

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page