Timer< T > Class Template Reference

#include <sot/core/timer.hh>

Inheritance diagram for Timer< T >:
dynamicgraph::Entity noncopyable

List of all members.

Public Member Functions

virtual const std::string & getClassName (void) const
 Timer (const std::string &name)
virtual void display (std::ostream &os) const
virtual void commandLine (const std::string &cmdLine, std::istringstream &cmdArgs, std::ostream &os)

Public Attributes

dg::SignalPtr< T, int > sigSIN
dg::SignalTimeDependent< T, int > sigSOUT
dg::Signal< double, int > timerSOUT

Static Public Attributes

static const std::string CLASS_NAME

Protected Member Functions

void plug (dg::Signal< T, int > &sig)
T & compute (T &t, const int &time)
double & getDt (double &res, const int &)

Protected Attributes

struct timeval t0 t1
double dt

Friends

Timer_EXPORT friend std::ostream & operator<< (std::ostream &os, const Timer< T > &timer)

template<class T>
class Timer< T >


Constructor & Destructor Documentation


Member Function Documentation

template<class T >
void Timer< T >::commandLine ( const std::string &  cmdLine,
std::istringstream &  cmdArgs,
std::ostream &  os 
) [virtual]

Reimplemented from dynamicgraph::Entity.

References sotDEBUGIN, and sotDEBUGOUT.

template<class T >
T& Timer< T >::compute ( T &  t,
const int &  time 
) [inline, protected]

References sotDEBUG, sotDEBUGIN, and sotDEBUGOUT.

template<class T >
void Timer< T >::display ( std::ostream &  os) const [virtual]

Reimplemented from dynamicgraph::Entity.

template<class T >
virtual const std::string& Timer< T >::getClassName ( void  ) const [inline, virtual]

Implements dynamicgraph::Entity.

template<class T >
double& Timer< T >::getDt ( double &  res,
const int &   
) [inline, protected]

Referenced by Timer< T >::Timer().

template<class T >
void Timer< T >::plug ( dg::Signal< T, int > &  sig) [inline, protected]

Friends And Related Function Documentation

template<class T >
Timer_EXPORT friend std::ostream& operator<< ( std::ostream &  os,
const Timer< T > &  timer 
) [friend]

Member Data Documentation

template<class T >
const std::string Timer< T >::CLASS_NAME [static]
template<class T >
double Timer< T >::dt [protected]
template<class T >
dg::SignalPtr<T,int> Timer< T >::sigSIN

Referenced by Timer< T >::Timer().

template<class T >
dg::SignalTimeDependent<T,int> Timer< T >::sigSOUT

Referenced by Timer< T >::Timer().

template<class T >
struct timeval t0 Timer< T >::t1 [protected]
template<class T >
dg::Signal<double,int> Timer< T >::timerSOUT

Referenced by Timer< T >::Timer().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines