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

#include <LogManager.h>

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

Public Member Functions

void add (const T &state)
 
void clear ()
 
double currentTime ()
 
void enableRingBuffer (int len)
 
void faster ()
 
void head ()
 
int index ()
 
bool isNewStateAdded ()
 
bool isRecording ()
 
unsigned int length ()
 
 LogManager ()
 
void move (double ratio)
 
void next (int delta=1)
 
void play ()
 
void prev (int delta=1)
 
bool record (double i_fps)
 
void slower ()
 
T & state ()
 
bool state (T &o_state)
 
void tail ()
 
double time (int i)
 
double time ()
 
int updateIndex ()
 
- Public Member Functions inherited from LogManagerBase
double fps ()
 
bool isPlaying ()
 
bool isRecording ()
 
 LogManagerBase ()
 
double playRatio ()
 
virtual ~LogManagerBase ()
 

Protected Member Functions

void setIndex (int i)
 

Protected Attributes

bool m_atLast
 
int m_index
 
double m_initT
 
bool m_isNewStateAdded
 
std::deque< T > m_log
 
int m_maxLogLength
 
boost::mutex m_mutex
 
double m_offsetT
 
struct timeval m_startT
 
- Protected Attributes inherited from LogManagerBase
double m_fps
 
bool m_isPlaying
 
bool m_isRecording
 
double m_playRatio
 

Detailed Description

template<class T>
class LogManager< T >

Definition at line 11 of file LogManager.h.

Constructor & Destructor Documentation

template<class T>
LogManager< T >::LogManager ( )
inline

Definition at line 14 of file LogManager.h.

Member Function Documentation

template<class T>
void LogManager< T >::add ( const T &  state)
inline

Definition at line 17 of file LogManager.h.

template<class T>
void LogManager< T >::clear ( void  )
inlinevirtual

Implements LogManagerBase.

Definition at line 27 of file LogManager.h.

template<class T>
double LogManager< T >::currentTime ( void  )
inlinevirtual

Implements LogManagerBase.

Definition at line 55 of file LogManager.h.

template<class T>
void LogManager< T >::enableRingBuffer ( int  len)
inline

Definition at line 157 of file LogManager.h.

template<class T>
void LogManager< T >::faster ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 68 of file LogManager.h.

template<class T>
void LogManager< T >::head ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 42 of file LogManager.h.

template<class T>
int LogManager< T >::index ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 63 of file LogManager.h.

template<class T>
bool LogManager< T >::isNewStateAdded ( )
inline

Definition at line 54 of file LogManager.h.

template<class T>
bool LogManager< T >::isRecording ( )
inline

Definition at line 94 of file LogManager.h.

template<class T>
unsigned int LogManager< T >::length ( void  )
inlinevirtual

Implements LogManagerBase.

Definition at line 158 of file LogManager.h.

template<class T>
void LogManager< T >::move ( double  ratio)
inlinevirtual

Implements LogManagerBase.

Definition at line 50 of file LogManager.h.

template<class T>
void LogManager< T >::next ( int  delta = 1)
inlinevirtual

Implements LogManagerBase.

Definition at line 38 of file LogManager.h.

template<class T>
void LogManager< T >::play ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 95 of file LogManager.h.

template<class T>
void LogManager< T >::prev ( int  delta = 1)
inlinevirtual

Implements LogManagerBase.

Definition at line 34 of file LogManager.h.

template<class T>
bool LogManager< T >::record ( double  i_fps)
inlinevirtual

Implements LogManagerBase.

Definition at line 84 of file LogManager.h.

template<class T>
void LogManager< T >::setIndex ( int  i)
inlineprotected

Definition at line 171 of file LogManager.h.

template<class T>
void LogManager< T >::slower ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 76 of file LogManager.h.

template<class T>
T& LogManager< T >::state ( )
inline

Definition at line 140 of file LogManager.h.

template<class T>
bool LogManager< T >::state ( T &  o_state)
inline

Definition at line 148 of file LogManager.h.

template<class T>
void LogManager< T >::tail ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 46 of file LogManager.h.

template<class T>
double LogManager< T >::time ( int  i)
inline

Definition at line 64 of file LogManager.h.

template<class T>
double LogManager< T >::time ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 162 of file LogManager.h.

template<class T>
int LogManager< T >::updateIndex ( )
inlinevirtual

Implements LogManagerBase.

Definition at line 108 of file LogManager.h.

Member Data Documentation

template<class T>
bool LogManager< T >::m_atLast
protected

Definition at line 182 of file LogManager.h.

template<class T>
int LogManager< T >::m_index
protected

Definition at line 181 of file LogManager.h.

template<class T>
double LogManager< T >::m_initT
protected

Definition at line 183 of file LogManager.h.

template<class T>
bool LogManager< T >::m_isNewStateAdded
protected

Definition at line 182 of file LogManager.h.

template<class T>
std::deque<T> LogManager< T >::m_log
protected

Definition at line 180 of file LogManager.h.

template<class T>
int LogManager< T >::m_maxLogLength
protected

Definition at line 185 of file LogManager.h.

template<class T>
boost::mutex LogManager< T >::m_mutex
protected

Definition at line 187 of file LogManager.h.

template<class T>
double LogManager< T >::m_offsetT
protected

Definition at line 186 of file LogManager.h.

template<class T>
struct timeval LogManager< T >::m_startT
protected

Definition at line 184 of file LogManager.h.


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


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:52