ConstVectorBase Class Template Reference
[Vector and Matrix mathematics]

#include <VectorBase.hpp>

Inheritance diagram for ConstVectorBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T, class BaseClass>
class gpstk::ConstVectorBase< T, BaseClass >

A base class for a vector that does not allow modification of the internal vector.

BaseClass is the base class that implements the vector.

Definition at line 91 of file VectorBase.hpp.

Public Member Functions

 ConstVectorBase ()
 Constructor.
size_t size () const
 Returns the size of the base class.
operator[] (size_t i) const
 returns the element at index i
operator() (size_t i) const
 returns the element at index i

Protected Member Functions

constVectorRef (size_t i) const throw (VectorException)
 returns the element at index i by calling the base class's operator[]


Constructor & Destructor Documentation

ConstVectorBase  )  [inline, explicit]
 

Constructor.

Definition at line 95 of file VectorBase.hpp.


Member Function Documentation

T constVectorRef size_t  i  )  const throw (VectorException) [inline, protected]
 

returns the element at index i by calling the base class's operator[]

Definition at line 109 of file VectorBase.hpp.

T operator() size_t  i  )  const [inline]
 

returns the element at index i

Reimplemented in Vector, VectorSlice, ConstVectorSlice, Vector< double >, Vector< int >, Vector< SatID >, Vector< Xvt >, and Vector< DayTime >.

Definition at line 104 of file VectorBase.hpp.

T operator[] size_t  i  )  const [inline]
 

returns the element at index i

Reimplemented in Vector, VectorSlice, ConstVectorSlice, Vector< double >, Vector< int >, Vector< SatID >, Vector< Xvt >, and Vector< DayTime >.

Definition at line 101 of file VectorBase.hpp.

size_t size void   )  const [inline]
 

Returns the size of the base class.

Reimplemented in Vector, VectorSlice, ConstVectorSlice, Vector< double >, Vector< int >, Vector< SatID >, Vector< Xvt >, and Vector< DayTime >.

Definition at line 98 of file VectorBase.hpp.

Referenced by Vector< DayTime >::operator=(), and Vector< DayTime >::Vector().


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