array_const_subvector Class Reference

A simple subvector class for a const array (without error checking). More...

#include <array.h>


Detailed Description

A simple subvector class for a const array (without error checking).

Idea for future:
Make the member data truly const and remove the extra typecast.

Definition at line 364 of file array.h.


Public Member Functions

 array_const_subvector (const double *arr, size_t offset, size_t n)
 Create a reversed array from arr of size sz.
const double & operator[] (size_t i) const
 Array-like indexing.

Protected Attributes

double * a
 The array pointer.
size_t off
 The offset.
size_t len
 The subvector length.

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