Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
ovector_reverse_tlate< data_t, vparent_t, block_t > Class Template Reference

Reversed view of a vector. More...

#include <ovector_rev_tlate.h>

Inheritance diagram for ovector_reverse_tlate< data_t, vparent_t, block_t >:
ovector_base_tlate< data_t, vparent_t, block_t > ovector_const_view_tlate< data_t, vparent_t, block_t >

Detailed Description

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

Note:
Note that you can't reverse a reversed vector, and this is why this class does not have a constructor of the form ovector_reverse(ovector_reverse &v).

Definition at line 55 of file ovector_rev_tlate.h.

Public Member Functions

 ovector_reverse_tlate (ovector_tlate< data_t, vparent_t, block_t > &v)
 Create a vector from dat with size n and stride s.
 ovector_reverse_tlate (ovector_view_tlate< data_t, vparent_t, block_t > &v)
 Create a vector from dat with size n and stride s.
Get and set methods
data_t & operator[] (size_t i)
 Array-like indexing.
const data_t & operator[] (size_t i) const
 Array-like indexing.
data_t & operator() (size_t i)
 Array-like indexing.
const data_t & operator() (size_t i) const
 Array-like indexing.
data_t get (size_t i) const
 Get (with optional range-checking)
data_t * get_ptr (size_t i)
 Get pointer (with optional range-checking)
const data_t * get_const_ptr (size_t i) const
 Get pointer (with optional range-checking)
int set (size_t i, data_t val)
 Set (with optional range-checking)
int set_all (double val)
 Set all of the value to be the value val.

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.