#include <Vector.hpp>
Inheritance diagram for ConstVectorSlice:


Definition at line 396 of file Vector.hpp.
Public Member Functions | |
| ConstVectorSlice () | |
| default constructor | |
| ConstVectorSlice (const Vector< T > &vv) | |
| Makes a slice of the whole vector. | |
| ConstVectorSlice (const Vector< T > &vv, const std::slice &ss) | |
| Uses the given slice and vector. | |
| T | operator[] (size_t i) const |
| Returns a const version of the i'th slice element. | |
| T | operator() (size_t i) const |
| Returns a const version of the i'th slice element. | |
| size_t | size () const |
| returns the number of elements in the slice | |
| size_t | start () const |
| returns the index in the vector of the first element. | |
| size_t | stride () const |
| returns the number of elements to skip between (*this)[i] and (*this)[i+1] | |
|
|
default constructor
Definition at line 400 of file Vector.hpp. |
|
|
Makes a slice of the whole vector.
Definition at line 405 of file Vector.hpp. |
|
||||||||||||
|
Uses the given slice and vector.
Definition at line 410 of file Vector.hpp. References Vector::size(). |
|
|
Returns a const version of the i'th slice element.
Reimplemented from ConstVectorBase< T, ConstVectorSlice< T > >. Definition at line 418 of file Vector.hpp. |
|
|
Returns a const version of the i'th slice element.
Reimplemented from ConstVectorBase< T, ConstVectorSlice< T > >. Definition at line 415 of file Vector.hpp. |
|
|
returns the number of elements in the slice
Reimplemented from ConstVectorBase< T, ConstVectorSlice< T > >. Definition at line 422 of file Vector.hpp. References Vector::size(). |
|
|
returns the index in the vector of the first element.
Reimplemented from VectorSliceBase< ConstVectorSlice< T > >. Definition at line 424 of file Vector.hpp. |
|
|
returns the number of elements to skip between (*this)[i] and (*this)[i+1]
Reimplemented from VectorSliceBase< ConstVectorSlice< T > >. Definition at line 427 of file Vector.hpp. |
1.3.9.1