Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
Timer< T > Class Template Reference

#include <timer.hh>

Inheritance diagram for Timer< T >:
Inheritance graph
[legend]

Public Member Functions

virtual void display (std::ostream &os) const
 
virtual const std::string & getClassName (void) const
 
 Timer (const std::string &name)
 
- Public Member Functions inherited from dynamicgraph::Entity
std::ostream & displaySignalList (std::ostream &os) const
 
 Entity (const std::string &name)
 
const std::string & getCommandList () const
 
virtual std::string getDocString () const
 
LoggerVerbosity getLoggerVerbosityLevel ()
 
LoggerVerbosity getLoggerVerbosityLevel ()
 
const std::string & getName () const
 
command::CommandgetNewStyleCommand (const std::string &cmdName)
 
CommandMap_t getNewStyleCommandMap ()
 
SignalBase< sigtime_t > & getSignal (const std::string &signalName)
 
const SignalBase< sigtime_t > & getSignal (const std::string &signalName) const
 
SignalMap getSignalMap () const
 
double getStreamPrintPeriod ()
 
double getStreamPrintPeriod ()
 
double getTimeSample ()
 
double getTimeSample ()
 
bool hasSignal (const std::string &signame) const
 
Loggerlogger ()
 
Loggerlogger ()
 
const Loggerlogger () const
 
const Loggerlogger () const
 
void sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="")
 
void sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="")
 
void setLoggerVerbosityLevel (LoggerVerbosity lv)
 
void setLoggerVerbosityLevel (LoggerVerbosity lv)
 
bool setStreamPrintPeriod (double t)
 
bool setStreamPrintPeriod (double t)
 
bool setTimeSample (double t)
 
bool setTimeSample (double t)
 
virtual SignalBase< sigtime_t > * test ()
 
virtual void test2 (SignalBase< sigtime_t > *)
 
virtual std::ostream & writeCompletionList (std::ostream &os) const
 
virtual std::ostream & writeGraph (std::ostream &os) const
 
virtual ~Entity ()
 

Public Attributes

dynamicgraph::SignalTimeDependent< T, dg::sigtime_tsigClockSOUT
 
dynamicgraph::SignalPtr< T, dg::sigtime_tsigSIN
 
dynamicgraph::SignalTimeDependent< T, dg::sigtime_tsigSOUT
 
dynamicgraph::Signal< double, dg::sigtime_ttimerSOUT
 

Static Public Attributes

static const std::string CLASS_NAME
 

Protected Member Functions

template<bool UseClock>
Tcompute (T &t, const sigtime_t &time)
 
double & getDt (double &res, const sigtime_t &)
 
void plug (dynamicgraph::Signal< T, dg::sigtime_t > &sig)
 
- Protected Member Functions inherited from dynamicgraph::Entity
void addCommand (const std::string &name, command::Command *command)
 
void entityDeregistration ()
 
void entityRegistration ()
 
void signalDeregistration (const std::string &name)
 
void signalRegistration (const SignalArray< sigtime_t > &signals)
 

Protected Attributes

clock_t c0
 
clock_t c1
 
double dt
 
struct timeval t0 t1
 
- Protected Attributes inherited from dynamicgraph::Entity
CommandMap_t commandMap
 
Logger logger_
 
std::string name
 
SignalMap signalMap
 

Friends

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

Additional Inherited Members

- Public Types inherited from dynamicgraph::Entity
typedef std::map< const std::string, command::Command * > CommandMap_t
 
typedef std::map< std::string, SignalBase< sigtime_t > * > SignalMap
 

Detailed Description

template<class T>
class Timer< T >

Definition at line 56 of file timer.hh.

Constructor & Destructor Documentation

◆ Timer()

template<class T >
Timer< T >::Timer ( const std::string &  name)

Definition at line 139 of file timer.hh.

Member Function Documentation

◆ compute()

template<class T >
template<bool UseClock>
T& Timer< T >::compute ( T t,
const sigtime_t time 
)
inlineprotected

Definition at line 91 of file timer.hh.

◆ display()

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

Reimplemented from dynamicgraph::Entity.

Definition at line 157 of file timer.hh.

◆ getClassName()

template<class T >
virtual const std::string& Timer< T >::getClassName ( void  ) const
inlinevirtual

Reimplemented from dynamicgraph::Entity.

Definition at line 59 of file timer.hh.

◆ getDt()

template<class T >
double& Timer< T >::getDt ( double &  res,
const sigtime_t  
)
inlineprotected

Definition at line 124 of file timer.hh.

◆ plug()

template<class T >
void Timer< T >::plug ( dynamicgraph::Signal< T, dg::sigtime_t > &  sig)
inlineprotected

Definition at line 85 of file timer.hh.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 72 of file timer.hh.

Member Data Documentation

◆ c0

template<class T >
clock_t Timer< T >::c0
protected

Definition at line 63 of file timer.hh.

◆ c1

template<class T >
clock_t Timer< T >::c1
protected

Definition at line 63 of file timer.hh.

◆ CLASS_NAME

template<class T >
const std::string Timer< T >::CLASS_NAME
static

Definition at line 58 of file timer.hh.

◆ dt

template<class T >
double Timer< T >::dt
protected

Definition at line 64 of file timer.hh.

◆ sigClockSOUT

template<class T >
dynamicgraph::SignalTimeDependent<T, dg::sigtime_t> Timer< T >::sigClockSOUT

Definition at line 81 of file timer.hh.

◆ sigSIN

template<class T >
dynamicgraph::SignalPtr<T, dg::sigtime_t> Timer< T >::sigSIN

Definition at line 79 of file timer.hh.

◆ sigSOUT

template<class T >
dynamicgraph::SignalTimeDependent<T, dg::sigtime_t> Timer< T >::sigSOUT

Definition at line 80 of file timer.hh.

◆ t1

template<class T >
struct timeval t0 Timer< T >::t1
protected

Definition at line 62 of file timer.hh.

◆ timerSOUT

template<class T >
dynamicgraph::Signal<double, dg::sigtime_t> Timer< T >::timerSOUT

Definition at line 82 of file timer.hh.


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


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:32