10 #ifndef __SOT_MAILBOX_T_CPP 11 #define __SOT_MAILBOX_T_CPP 21 template <
class Object>
29 SOUT(boost::bind(&
Mailbox::get, this, _1, _2), sotNOSIGNAL,
30 "Mailbox(" + name +
")::output(Object)::sout"),
31 objSOUT(boost::bind(&
Mailbox::getObject, this, _1, _2), SOUT,
32 "Mailbox(" + name +
")::output(Object)::object"),
33 timeSOUT(boost::bind(&
Mailbox::getTimestamp, this, _1, _2), SOUT,
34 "Mailbox(" + name +
")::output(Object)::timestamp") {
36 SOUT.setDependencyType(TimeDependency<int>::BOOL_DEPENDENT);
39 template <
class Object>
47 template <
class Object>
51 if (lockMain.owns_lock()) {
59 template <
class Object>
65 if (lockMain.owns_lock()) {
77 template <
class Object>
88 template <
class Object>
95 template <
class Object>
107 #define MAILBOX_TEMPLATE_SPE(S) \ 108 namespace dynamicgraph { \ 110 template void Mailbox<S>::post(const S &obj); \ 111 template dynamicgraph::Vector &Mailbox<S>::getObject(S &res, \ 113 template bool Mailbox<S>::hasBeenUpdated(void); \ 114 template Mailbox<S>::~Mailbox(); \ 115 template Mailbox<S>::sotTimestampedObject &Mailbox<S>::get( \ 116 Mailbox<S>::sotTimestampedObject &res, const int &dummy); \ 117 template Mailbox<S>::Mailbox(const std::string &name); \ 119 } // namespace sot namespace dynamicgraph 122 #endif // #ifdef __SOT_MAILBOX_T_CPP Mailbox(const std::string &name)
Definition: mailbox.hxx:22
Definition: mailbox.hh:37
dynamicgraph::SignalTimeDependent< struct timeval, int > timeSOUT
Definition: mailbox.hh:72
struct timeval timestamp
Definition: mailbox.hh:39
boost::timed_mutex mainObjectMutex
Definition: mailbox.hh:64
bool update
Definition: mailbox.hh:67
void post(const Object &obj)
Definition: mailbox.hxx:78
dynamicgraph::SignalTimeDependent< Object, int > objSOUT
Definition: mailbox.hh:71
~Mailbox(void)
Definition: mailbox.hxx:40
sotTimestampedObject & get(sotTimestampedObject &res, const int &dummy)
Definition: mailbox.hxx:60
Definition: mailbox.hh:43
struct timeval & getTimestamp(struct timeval &res, const int &time)
Definition: mailbox.hxx:96
bool hasBeenUpdated(void)
Definition: mailbox.hxx:48
Object obj
Definition: mailbox.hh:38
struct timeval mainTimeStamp
Definition: mailbox.hh:66
Object mainObject
Definition: mailbox.hh:65
dynamicgraph::SignalTimeDependent< sotTimestampedObject, int > SOUT
Definition: mailbox.hh:70
Definition: abstract-sot-external-interface.hh:17
Object & getObject(Object &res, const int &time)
Definition: mailbox.hxx:89