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

Reversed view of a subvector. More...

#include <ovector_rev_tlate.h>

Inheritance diagram for ovector_subvector_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_subvector_reverse_tlate< data_t, vparent_t, block_t >

Warning:
At present, reversing a reversed vector does not give the original ordering.

Definition at line 317 of file ovector_rev_tlate.h.

Public Member Functions

 ovector_subvector_reverse_tlate (ovector_base_tlate< data_t, vparent_t, block_t > &v, size_t offset, size_t n)
 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.