VectorSliceBase Class Template Reference
[Vector and Matrix mathematics]

#include <VectorBase.hpp>

Inheritance diagram for VectorSliceBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class BaseClass>
class gpstk::VectorSliceBase< BaseClass >

A base class that represents a subset of a vector.

Definition at line 254 of file VectorBase.hpp.

Public Member Functions

 VectorSliceBase ()
 constructor
size_t size () const
 the number of elements in the slice.
size_t start () const
 the start index in the BaseClass vector for this slice.
size_t stride () const
 How many elements separate the i'th element from the i+1'th element.

Protected Member Functions

void vecSliceCheck (size_t sourceSize) const throw (VectorException)
 Given the size of the source vector, checks that the slice is valid.


Constructor & Destructor Documentation

VectorSliceBase  )  [inline, explicit]
 

constructor

Definition at line 258 of file VectorBase.hpp.


Member Function Documentation

size_t size void   )  const [inline]
 

the number of elements in the slice.

Reimplemented in VectorSlice, and ConstVectorSlice.

Definition at line 261 of file VectorBase.hpp.

size_t start  )  const [inline]
 

the start index in the BaseClass vector for this slice.

Reimplemented in VectorSlice, and ConstVectorSlice.

Definition at line 264 of file VectorBase.hpp.

size_t stride  )  const [inline]
 

How many elements separate the i'th element from the i+1'th element.

Reimplemented in VectorSlice, and ConstVectorSlice.

Definition at line 267 of file VectorBase.hpp.

void vecSliceCheck size_t  sourceSize  )  const throw (VectorException) [inline, protected]
 

Given the size of the source vector, checks that the slice is valid.

Definition at line 272 of file VectorBase.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