version 3.3

VRS::TimeMethodMap< R, T > Class Template Reference

Template Class for Method-based Mappings. More...

#include <vrs/sg/timemethodmap.h>

Inheritance diagram for VRS::TimeMethodMap< R, T >:

VRS::TimeMap< T > VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 TimeMethodMap (R *object, T(R::*method)(double))
virtual T map (const Moment &m)
 VRS_TYPEINFO (TimeMethodMap, TimeMap< T >)


Detailed Description

template<class R, typename T>
class VRS::TimeMethodMap< R, T >

Template Class for Method-based Mappings.

Constructor & Destructor Documentation

template<class R, typename T>
VRS::TimeMethodMap< R, T >::TimeMethodMap ( R *  object,
T(R::*)(double)  method 
)

An `TimeMethodMap' calls a double-valued method for a given object of type `R'. The method returns a value of type `T'.


Member Function Documentation

template<class R, typename T>
virtual T VRS::TimeMethodMap< R, T >::map ( const Moment m  )  [virtual]

Calls back the method for the given object. The double value passed as argument is calculated as relative time progress:

  • t = (m.time()-m.begin())/m.duration()

and is within the range [0,1] for finite time intervals.

Implements VRS::TimeMap< T >.

template<class R, typename T>
VRS::TimeMethodMap< R, T >::VRS_TYPEINFO ( TimeMethodMap< R, T >  ,
TimeMap< T >   
)


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

Generated on Wed May 23 06:00:28 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact