VectorBase.hpp File Reference


Detailed Description

Base Vector class.

Definition in file VectorBase.hpp.

#include <valarray>
#include "Exception.hpp"
#include "MathBase.hpp"
#include "VectorBaseOperators.hpp"

Include dependency graph for VectorBase.hpp:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  gpstk

Classes

class  VectorException
 An exception thrown when there's a problem with a vector. More...
class  ConstVectorBase
 A base class for a vector that does not allow modification of the internal vector. More...
class  RefVectorBaseHelper
 a class to hold the static members of RefVectorBase. More...
class  RefVectorBase
 A vector base class that allows modification of the internal representation. More...
class  VectorSliceBase
 A base class that represents a subset of a vector. More...
class  ConstVectorSliceBase
 A vector slice base class that doesn't allow modification of the internal elements. More...
class  RefVectorSliceBase
 A vector slice base class that does allow modification of the internal elements. More...

Defines

#define VecBaseArrayAssignMacroDontCheckRange(func)
#define VecBaseArrayAssignMacro(func)   VecBaseArrayAssignMacroDontCheckRange(func)
#define VecBaseAtomicAssignMacro(func)
#define VecBaseNewAssignOperator(funcName, op)


Define Documentation

#define VecBaseArrayAssignMacro func   )     VecBaseArrayAssignMacroDontCheckRange(func)
 

Definition at line 181 of file VectorBase.hpp.

#define VecBaseArrayAssignMacroDontCheckRange func   ) 
 

Value:

BaseClass& me = static_cast<BaseClass&>(*this); \
   size_t i; for (i=0; i < me.size(); i++) { \
      me[i] func x[i]; \
   } \
   return me;

Definition at line 163 of file VectorBase.hpp.

#define VecBaseAtomicAssignMacro func   ) 
 

Value:

BaseClass& me = static_cast<BaseClass&>(*this); \
   size_t i; for (i=0; i < me.size(); i++) me[i] func x; \
   return me;

Definition at line 185 of file VectorBase.hpp.

#define VecBaseNewAssignOperator funcName,
op   ) 
 

Value:

 \
   template <class E> BaseClass& funcName(const ConstVectorBase<T, E>& x) \
      { VecBaseArrayAssignMacro(op) } \ \
   BaseClass& funcName(const std::valarray<T>& x) \
      { VecBaseArrayAssignMacro(op) } \ \
   BaseClass& funcName(const T* x) \
      { VecBaseArrayAssignMacroDontCheckRange(op) } \ \
   BaseClass& funcName(T x) \
      { VecBaseAtomicAssignMacro(op) }

Definition at line 190 of file VectorBase.hpp.


Generated on Wed Feb 8 03:31:22 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1