User Manual, Developers Guide and API Documentation

wns::container::Mapping< PARAMETER, RESULTTYPE > Class Template Reference

use this class as a base if you have to map from a certain x value (discrete xvalues allowed only) to a dedicated y value and you have to distinguish between different mapping curves through a parameter. You have to fill the MappingField in the derived class and make sure you look up with valid key values.

#include <container/Mapping.hpp>

Inheritance diagram for wns::container::Mapping< PARAMETER, RESULTTYPE >:

Inheritance graph
[legend]
Collaboration diagram for wns::container::Mapping< PARAMETER, RESULTTYPE >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< PARAMETER,
MappingFunction
MappingField
typedef std::vector< RESULTTYPE > MappingFunction

Public Member Functions

RESULTTYPE map (const int xvalue, PARAMETER Parameter) const
 Mapping (unsigned int _offset=0)

Protected Attributes

MappingField mf
unsigned int offset


Detailed Description

template<typename PARAMETER, typename RESULTTYPE>
class wns::container::Mapping< PARAMETER, RESULTTYPE >

Definition at line 44 of file Mapping.hpp.


Member Typedef Documentation

template<typename PARAMETER, typename RESULTTYPE>
typedef std::map<PARAMETER, MappingFunction> wns::container::Mapping< PARAMETER, RESULTTYPE >::MappingField

Definition at line 48 of file Mapping.hpp.

template<typename PARAMETER, typename RESULTTYPE>
typedef std::vector<RESULTTYPE> wns::container::Mapping< PARAMETER, RESULTTYPE >::MappingFunction

Definition at line 47 of file Mapping.hpp.


Constructor & Destructor Documentation

template<typename PARAMETER, typename RESULTTYPE>
wns::container::Mapping< PARAMETER, RESULTTYPE >::Mapping ( unsigned int  _offset = 0  )  [inline]

Definition at line 50 of file Mapping.hpp.


Member Function Documentation

template<typename PARAMETER, typename RESULTTYPE>
RESULTTYPE wns::container::Mapping< PARAMETER, RESULTTYPE >::map ( const int  xvalue,
PARAMETER  Parameter 
) const [inline]

Definition at line 55 of file Mapping.hpp.


Member Data Documentation

template<typename PARAMETER, typename RESULTTYPE>
MappingField wns::container::Mapping< PARAMETER, RESULTTYPE >::mf [protected]

Todo:
pab: make this more efficient, e.g. static or so.

Definition at line 68 of file Mapping.hpp.

template<typename PARAMETER, typename RESULTTYPE>
unsigned int wns::container::Mapping< PARAMETER, RESULTTYPE >::offset [protected]

Definition at line 69 of file Mapping.hpp.


The documentation for this class was generated from the following file:

Generated on Sat May 26 03:32:52 2012 for openWNS by  doxygen 1.5.5