RefVectorBase Class Template Reference
[Vector and Matrix mathematics]

#include <VectorBase.hpp>

Inheritance diagram for RefVectorBase:

Inheritance graph
[legend]
Collaboration diagram for RefVectorBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

A vector base class that allows modification of the internal representation.

Definition at line 139 of file VectorBase.hpp.

Public Member Functions

 RefVectorBase ()
 constructor
T & operator[] (size_t i)
 returns a modifiable version of the element at index i.
T & operator() (size_t i)
 returns a modifiable version of the element at index i.
BaseClass & zeroize ()
 Any value in the vector with absolute value below zeroTolerance is set to zero.
template<class E>
BaseClass & assignFrom (const ConstVectorBase< T, E > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & assignFrom (const std::valarray< T > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & assignFrom (const T *x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & assignFrom (T x)
 Performs op on (*this).size() elements of (*this) from x.
template<class E>
BaseClass & operator+= (const ConstVectorBase< T, E > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator+= (const std::valarray< T > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator+= (const T *x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator+= (T x)
 Performs op on (*this).size() elements of (*this) from x.
template<class E>
BaseClass & operator-= (const ConstVectorBase< T, E > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator-= (const std::valarray< T > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator-= (const T *x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator-= (T x)
 Performs op on (*this).size() elements of (*this) from x.
template<class E>
BaseClass & operator *= (const ConstVectorBase< T, E > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator *= (const std::valarray< T > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator *= (const T *x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator *= (T x)
 Performs op on (*this).size() elements of (*this) from x.
template<class E>
BaseClass & operator/= (const ConstVectorBase< T, E > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator/= (const std::valarray< T > &x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator/= (const T *x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator/= (T x)
 Performs op on (*this).size() elements of (*this) from x.
BaseClass & operator- ()
 unary minus: multiplies each element of this vector by -1.

Protected Member Functions

T & vecRef (size_t i) throw (VectorException)
 Returns a modifiable object at index i.


Constructor & Destructor Documentation

RefVectorBase  )  [inline, explicit]
 

constructor

Definition at line 144 of file VectorBase.hpp.


Member Function Documentation

BaseClass& assignFrom x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 209 of file VectorBase.hpp.

BaseClass& assignFrom const T *  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 209 of file VectorBase.hpp.

BaseClass& assignFrom const std::valarray< T > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 209 of file VectorBase.hpp.

BaseClass& assignFrom const ConstVectorBase< T, E > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 209 of file VectorBase.hpp.

BaseClass& operator *= x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 212 of file VectorBase.hpp.

BaseClass& operator *= const T *  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 212 of file VectorBase.hpp.

BaseClass& operator *= const std::valarray< T > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 212 of file VectorBase.hpp.

BaseClass& operator *= const ConstVectorBase< T, E > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 212 of file VectorBase.hpp.

T& operator() size_t  i  )  [inline]
 

returns a modifiable version of the element at index i.

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

Definition at line 149 of file VectorBase.hpp.

BaseClass& operator+= x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 210 of file VectorBase.hpp.

BaseClass& operator+= const T *  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 210 of file VectorBase.hpp.

BaseClass& operator+= const std::valarray< T > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 210 of file VectorBase.hpp.

BaseClass& operator+= const ConstVectorBase< T, E > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 210 of file VectorBase.hpp.

BaseClass& operator-  )  [inline]
 

unary minus: multiplies each element of this vector by -1.

Definition at line 216 of file VectorBase.hpp.

BaseClass& operator-= x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 211 of file VectorBase.hpp.

BaseClass& operator-= const T *  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 211 of file VectorBase.hpp.

BaseClass& operator-= const std::valarray< T > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 211 of file VectorBase.hpp.

BaseClass& operator-= const ConstVectorBase< T, E > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 211 of file VectorBase.hpp.

BaseClass& operator/= x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 213 of file VectorBase.hpp.

BaseClass& operator/= const T *  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 213 of file VectorBase.hpp.

BaseClass& operator/= const std::valarray< T > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 213 of file VectorBase.hpp.

BaseClass& operator/= const ConstVectorBase< T, E > &  x  )  [inline]
 

Performs op on (*this).size() elements of (*this) from x.

Definition at line 213 of file VectorBase.hpp.

T& operator[] size_t  i  )  [inline]
 

returns a modifiable version of the element at index i.

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

Definition at line 146 of file VectorBase.hpp.

T& vecRef size_t  i  )  throw (VectorException) [inline, protected]
 

Returns a modifiable object at index i.

Definition at line 224 of file VectorBase.hpp.

BaseClass& zeroize  )  [inline]
 

Any value in the vector with absolute value below zeroTolerance is set to zero.

Definition at line 153 of file VectorBase.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 03:32:02 2009 for GPS ToolKit Software Library by  doxygen 1.3.9.1