typeValueMap Struct Reference
[GPSTk data structures]

#include <DataStructures.hpp>

List of all members.


Detailed Description

Map holding TypeID with corresponding numeric value.

Definition at line 247 of file DataStructures.hpp.

Public Member Functions

size_t numTypes () const
 Returns the number of different types available.
TypeIDSet getTypeID () const
 Returns a TypeIDSet with all the data types present in this object.
typeValueMap extractTypeID (const TypeID &type) const
 Returns a typeValueMap with only this type of data.
typeValueMap extractTypeID (const TypeIDSet &typeSet) const
 Returns a typeValueMap with only these types of data.
typeValueMapkeepOnlyTypeID (const TypeID &type)
 Modifies this object, keeping only this type of data.
typeValueMapkeepOnlyTypeID (const TypeIDSet &typeSet)
 Modifies this object, keeping only these types of data.
typeValueMapremoveTypeID (const TypeID &type)
 Modifies this object, removing this type of data.
typeValueMapremoveTypeID (const TypeIDSet &typeSet)
 Modifies this object, removing these types of data.
double getValue (const TypeID &type) const throw (TypeIDNotFound)
 Returns the data value (double) corresponding to provided type.
double & operator() (const TypeID &type) throw (TypeIDNotFound)
 Returns a reference to the data value (double) with corresponding type.
virtual ~typeValueMap ()
 Destructor.


Constructor & Destructor Documentation

virtual ~typeValueMap  )  [inline, virtual]
 

Destructor.

Definition at line 310 of file DataStructures.hpp.


Member Function Documentation

typeValueMap extractTypeID const TypeIDSet typeSet  )  const
 

Returns a typeValueMap with only these types of data.

Parameters:
typeSet Set (TypeIDSet) containing the types of data to be extracted.

Definition at line 81 of file DataStructures.cpp.

typeValueMap extractTypeID const TypeID type  )  const
 

Returns a typeValueMap with only this type of data.

Parameters:
type Type of value to be extracted.

Definition at line 66 of file DataStructures.cpp.

References gpstk::TypeIDSet.

Referenced by gnssTypeValue::extractTypeID().

TypeIDSet getTypeID  )  const
 

Returns a TypeIDSet with all the data types present in this object.

Definition at line 46 of file DataStructures.cpp.

References gpstk::TypeIDSet.

double getValue const TypeID type  )  const throw (TypeIDNotFound)
 

Returns the data value (double) corresponding to provided type.

Parameters:
type Type of value to be looked for.

Definition at line 156 of file DataStructures.cpp.

References GPSTK_THROW.

typeValueMap & keepOnlyTypeID const TypeIDSet typeSet  ) 
 

Modifies this object, keeping only these types of data.

Parameters:
typeSet Set (TypeIDSet) containing the types of data to be kept.

Definition at line 121 of file DataStructures.cpp.

typeValueMap & keepOnlyTypeID const TypeID type  ) 
 

Modifies this object, keeping only this type of data.

Parameters:
type Type of value to be kept.

Definition at line 106 of file DataStructures.cpp.

References gpstk::TypeIDSet.

size_t numTypes  )  const [inline]
 

Returns the number of different types available.

Definition at line 251 of file DataStructures.hpp.

double & operator() const TypeID type  )  throw (TypeIDNotFound)
 

Returns a reference to the data value (double) with corresponding type.

Parameters:
type Type of value to be looked for.

Definition at line 177 of file DataStructures.cpp.

References GPSTK_THROW.

typeValueMap & removeTypeID const TypeIDSet typeSet  ) 
 

Modifies this object, removing these types of data.

Parameters:
typeSet Set (TypeIDSet) containing the types of data to be kept.

Definition at line 136 of file DataStructures.cpp.

typeValueMap& removeTypeID const TypeID type  )  [inline]
 

Modifies this object, removing this type of data.

Parameters:
type Type of value to be removed.

Definition at line 284 of file DataStructures.hpp.


The documentation for this struct was generated from the following files:
Generated on Wed May 22 03:31:47 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1