ConstVectorSlice Class Template Reference
[Vector and Matrix mathematics]

#include <Vector.hpp>

Inheritance diagram for ConstVectorSlice:

Inheritance graph
[legend]
Collaboration diagram for ConstVectorSlice:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class gpstk::ConstVectorSlice< T >

A Vector<T> slice that doesn't allow modification.

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.
operator[] (size_t i) const
 Returns a const version of the i'th slice element.
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]


Constructor & Destructor Documentation

ConstVectorSlice  )  [inline]
 

default constructor

Definition at line 400 of file Vector.hpp.

ConstVectorSlice const Vector< T > &  vv  )  [inline]
 

Makes a slice of the whole vector.

Definition at line 405 of file Vector.hpp.

ConstVectorSlice const Vector< T > &  vv,
const std::slice &  ss
[inline]
 

Uses the given slice and vector.

Definition at line 410 of file Vector.hpp.

References Vector::size().


Member Function Documentation

T operator() size_t  i  )  const [inline]
 

Returns a const version of the i'th slice element.

Reimplemented from ConstVectorBase< T, ConstVectorSlice< T > >.

Definition at line 418 of file Vector.hpp.

T operator[] size_t  i  )  const [inline]
 

Returns a const version of the i'th slice element.

Reimplemented from ConstVectorBase< T, ConstVectorSlice< T > >.

Definition at line 415 of file Vector.hpp.

size_t size void   )  const [inline]
 

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().

size_t start  )  const [inline]
 

returns the index in the vector of the first element.

Reimplemented from VectorSliceBase< ConstVectorSlice< T > >.

Definition at line 424 of file Vector.hpp.

size_t stride  )  const [inline]
 

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.


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 03:31:43 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1