MRPT
2.0.4
|
Definition at line 51 of file nodelets.h.
#include <mrpt/comms/nodelets.h>
Public Types | |
using | Ptr = std::shared_ptr< Topic > |
Public Member Functions | |
~Topic () | |
template<typename ARG , typename Callable > | |
Subscriber::Ptr | createSubscriber (Callable &&func) |
void | publish (const std::any &any) |
void | cleanupSubscriber (std::list< std::weak_ptr< Subscriber >>::iterator it) |
Static Public Member Functions | |
template<typename CLEANUP > | |
static Ptr | create (CLEANUP &&cleanup) |
Private Member Functions | |
Topic (std::function< void()> &&cleanup) | |
Private Attributes | |
std::mutex | m_mutex |
std::list< std::weak_ptr< Subscriber > > | m_subs |
std::function< void()> | m_cleanup |
using mrpt::comms::Topic::Ptr = std::shared_ptr<Topic> |
Definition at line 57 of file nodelets.h.
|
private |
Definition at line 34 of file nodelets.cpp.
Referenced by create().
Topic::~Topic | ( | ) |
Definition at line 35 of file nodelets.cpp.
References m_cleanup.
void Topic::cleanupSubscriber | ( | std::list< std::weak_ptr< Subscriber >>::iterator | it | ) |
Definition at line 45 of file nodelets.cpp.
|
inlinestatic |
Definition at line 96 of file nodelets.h.
References Topic().
Referenced by mrpt::comms::TopicDirectory::getTopic().
|
inline |
Definition at line 62 of file nodelets.h.
References mrpt::comms::Subscriber::create(), mrpt::typemeta::TTypeName< T >::get(), m_mutex, and m_subs.
void Topic::publish | ( | const std::any & | any | ) |
Definition at line 36 of file nodelets.cpp.
|
private |
Definition at line 104 of file nodelets.h.
Referenced by ~Topic().
|
private |
Definition at line 102 of file nodelets.h.
Referenced by cleanupSubscriber(), createSubscriber(), and publish().
|
private |
Definition at line 103 of file nodelets.h.
Referenced by cleanupSubscriber(), createSubscriber(), and publish().
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |