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< int > & getSignal (const std::string &signalName)
 
const SignalBase< int > & 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 ()
 
Logger const & logger () const
 
Loggerlogger ()
 
Logger const & logger () 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< int > * test ()
 
virtual void test2 (SignalBase< int > *)
 
virtual std::ostream & writeCompletionList (std::ostream &os) const
 
virtual std::ostream & writeGraph (std::ostream &os) const
 
virtual ~Entity ()
 

Public Attributes

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

Static Public Attributes

static const std::string CLASS_NAME
 

Protected Member Functions

template<bool UseClock>
Tcompute (T &t, const int &time)
 
double & getDt (double &res, const int &)
 
void plug (dynamicgraph::Signal< T, int > &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< int > &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< int > *> SignalMap
 

Detailed Description

template<class T>
class Timer< T >

Definition at line 54 of file timer.hh.

Constructor & Destructor Documentation

◆ Timer()

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

Definition at line 137 of file timer.hh.

Member Function Documentation

◆ compute()

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

Definition at line 89 of file timer.hh.

◆ display()

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

Reimplemented from dynamicgraph::Entity.

Definition at line 155 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 57 of file timer.hh.

◆ getDt()

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

Definition at line 122 of file timer.hh.

◆ plug()

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

Definition at line 83 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 70 of file timer.hh.

Member Data Documentation

◆ c0

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

Definition at line 61 of file timer.hh.

◆ c1

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

Definition at line 61 of file timer.hh.

◆ CLASS_NAME

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

Definition at line 56 of file timer.hh.

◆ dt

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

Definition at line 62 of file timer.hh.

◆ sigClockSOUT

template<class T>
dynamicgraph::SignalTimeDependent<T, int> Timer< T >::sigClockSOUT

Definition at line 79 of file timer.hh.

◆ sigSIN

template<class T>
dynamicgraph::SignalPtr<T, int> Timer< T >::sigSIN

Definition at line 77 of file timer.hh.

◆ sigSOUT

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

Definition at line 78 of file timer.hh.

◆ t1

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

Definition at line 60 of file timer.hh.

◆ timerSOUT

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

Definition at line 80 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 Wed Jun 21 2023 02:51:27