dynamicgraph::sot::Mailbox< Object > Class Template Reference

#include <sot/core/mailbox.hh>

Inheritance diagram for dynamicgraph::sot::Mailbox< Object >:
[legend]

Classes

struct  sotTimestampedObject
 

Public Member Functions

virtual const std::string & getClassName (void) const
 
 Mailbox (const std::string &name)
 
 ~Mailbox (void)
 
void post (const Object &obj)
 
sotTimestampedObjectget (sotTimestampedObject &res, const int &dummy)
 
Object & getObject (Object &res, const int &time)
 
struct timeval & getTimestamp (struct timeval &res, const int &time)
 
bool hasBeenUpdated (void)
 

Public Attributes

dg::SignalTimeDependent< struct sotTimestampedObject, int > SOUT
 
dg::SignalTimeDependent< Object, int > objSOUT
 
dg::SignalTimeDependent< struct timeval, int > timeSOUT
 

Static Public Attributes

static const std::string CLASS_NAME
 

Protected Attributes

boost::timed_mutex mainObjectMutex
 
Object mainObject
 
struct timeval mainTimeStamp
 
bool update
 

Constructor & Destructor Documentation

◆ Mailbox()

◆ ~Mailbox()

template<class Object >
dynamicgraph::sot::Mailbox< Object >::~Mailbox ( void  )

Member Function Documentation

◆ get()

◆ getClassName()

template<class Object >
virtual const std::string& dynamicgraph::sot::Mailbox< Object >::getClassName ( void  ) const
inlinevirtual

◆ getObject()

template<class Object >
Object & dynamicgraph::sot::Mailbox< Object >::getObject ( Object &  res,
const int &  time 
)

◆ getTimestamp()

template<class Object >
timeval & dynamicgraph::sot::Mailbox< Object >::getTimestamp ( struct timeval &  res,
const int &  time 
)

◆ hasBeenUpdated()

template<class Object >
bool dynamicgraph::sot::Mailbox< Object >::hasBeenUpdated ( void  )

◆ post()

Member Data Documentation

◆ CLASS_NAME

template<class Object >
const std::string dynamicgraph::sot::Mailbox< Object >::CLASS_NAME
static

◆ mainObject

template<class Object >
Object dynamicgraph::sot::Mailbox< Object >::mainObject
protected

◆ mainObjectMutex

◆ mainTimeStamp

template<class Object >
struct timeval dynamicgraph::sot::Mailbox< Object >::mainTimeStamp
protected

◆ objSOUT

template<class Object >
dg::SignalTimeDependent<Object, int> dynamicgraph::sot::Mailbox< Object >::objSOUT

◆ SOUT

◆ timeSOUT

template<class Object >
dg::SignalTimeDependent<struct timeval, int> dynamicgraph::sot::Mailbox< Object >::timeSOUT

◆ update