ovector_view_tlate Class Template Reference

A vector view with finite stride. More...

#include <ovector_tlate.h>

Inheritance diagram for ovector_view_tlate:

ovector_base_tlate ovector_const_view_tlate omatrix_col_tlate omatrix_diag_tlate omatrix_row_tlate ovector_array_stride_tlate ovector_array_tlate ovector_cx_imag_tlate ovector_cx_real_tlate ovector_subvector_tlate

Detailed Description

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

A vector view with finite stride.

Definition at line 722 of file ovector_tlate.h.


Public Member Functions

Copy constructors
 ovector_view_tlate (const ovector_view_tlate &v)
 Shallow copy constructor - create a new view of the same vector.
ovector_view_tlateoperator= (const ovector_view_tlate &v)
 Shallow copy constructor - create a new view of the same vector.
 ovector_view_tlate (ovector_base_tlate< data_t, vparent_t, block_t > &v)
 Shallow copy constructor for non-views.
ovector_view_tlateoperator= (ovector_base_tlate< data_t, vparent_t, block_t > &v)
 Shallow copy constructor for non-views.
 ovector_view_tlate (uvector_base_tlate< data_t > &v)
 Shallow copy constructor for unit-stride vectors.
ovector_view_tlateoperator= (uvector_base_tlate< data_t > &v)
 Shallow copy constructor for unit-stride vectors.
Get and set methods
data_t & operator[] (size_t i) const
 Array-like indexing.
data_t & operator() (size_t i) const
 Array-like indexing with operator().
data_t * get_ptr (size_t i) const
 Get pointer (with optional range-checking).
int set (size_t i, data_t val) const
 Set (with optional range-checking).
int set_all (double val) const
 Set all of the value to be the value val.

Protected Member Functions

 ovector_view_tlate ()
 Empty constructor provided for use by ovector_view_tlate(const ovector_view_tlate &v).

Member Function Documentation

int set_all ( double  val  )  const [inline]

Set all of the value to be the value val.

If the vector is empty, this function does not perform any assignment and does not call the error handler.

Definition at line 876 of file ovector_tlate.h.


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