SimClock< T > Class Template Reference

#include <TAPsODESolvers.hpp>

Collaboration diagram for SimClock< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void AdvanceTime (T dt)
void AdvanceTime ()
 SimClock (T _start, T _end, T _current, T _step)

Public Attributes

current
end
start
step


Detailed Description

template<typename T>
class SimClock< T >

Definition at line 36 of file TAPsODESolvers.hpp.


Constructor & Destructor Documentation

template<typename T>
BEGIN_NAMESPACE_TAPs__MATH SimClock< T >::SimClock ( _start,
_end,
_current,
_step 
) [inline]

Definition at line 24 of file TAPsODESolvers.cpp.

00025     : start( _start ), end( _end ), current( _current ), step( _step )
00026 {}


Member Function Documentation

template<typename T>
void SimClock< T >::AdvanceTime ( dt  )  [inline]

Definition at line 35 of file TAPsODESolvers.cpp.

00036 {
00037     step = dt;
00038     current < end ? current += step : current;
00039 }

template<typename T>
void SimClock< T >::AdvanceTime (  )  [inline]

Definition at line 29 of file TAPsODESolvers.cpp.

00030 {
00031     current < end ? current += step : current;
00032 }


Member Data Documentation

template<typename T>
T SimClock< T >::current

Definition at line 49 of file TAPsODESolvers.hpp.

template<typename T>
T SimClock< T >::end

Definition at line 48 of file TAPsODESolvers.hpp.

template<typename T>
T SimClock< T >::start

Definition at line 47 of file TAPsODESolvers.hpp.

template<typename T>
T SimClock< T >::step

Definition at line 50 of file TAPsODESolvers.hpp.


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

Generated on Mon Oct 13 11:45:54 2008 for TAPs by  doxygen 1.5.6