Public Member Functions | Protected Attributes | Friends | List of all members
o2scl::vector_range_gen< vec_t > Class Template Reference

Experimental vector range object. More...

#include <vector.h>

Public Member Functions

 vector_range_gen (vec_t &v, size_t start, size_t last)
 Create an object starting with index start in vector v.
 vector_range_gen (const vector_range_gen &v2, size_t start, size_t last)
 Create an object from a previously constructed range object.
size_t size () const
 Return the vector size.
double & operator[] (size_t i)
 Return a reference ith element.
const double & operator[] (size_t i) const
 Return a const reference ith element.

Protected Attributes

vec_t & v_
 A reference to the original vector.
size_t start_
 The index offset.
size_t last_
 The end() iterator.


class const_vector_range_gen< vec_t >

Detailed Description

template<class vec_t>
class o2scl::vector_range_gen< vec_t >

Definition at line 2554 of file vector.h.

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

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