MRPT
1.9.9
|
The central directory of existing topics for pub/sub.
Definition at line 108 of file nodelets.h.
#include <mrpt/comms/nodelets.h>
Public Types | |
using | Ptr = std::shared_ptr< TopicDirectory > |
Public Member Functions | |
template<typename PATH > | |
Topic::Ptr | getTopic (PATH &&path) |
void | cleanupTopic (const std::string &key) |
Static Public Member Functions | |
static Ptr | create () |
Private Member Functions | |
TopicDirectory () | |
Private Attributes | |
std::mutex | m_mutex |
std::unordered_map< std::string, std::weak_ptr< Topic > > | m_mapService |
Definition at line 114 of file nodelets.h.
|
privatedefault |
void TopicDirectory::cleanupTopic | ( | const std::string & | key | ) |
Definition at line 54 of file nodelets.cpp.
References m_mapService, and m_mutex.
|
static |
Definition at line 60 of file nodelets.cpp.
|
inline |
Definition at line 117 of file nodelets.h.
References mrpt::comms::Topic::create(), m_mapService, and m_mutex.
|
private |
Definition at line 139 of file nodelets.h.
Referenced by cleanupTopic(), and getTopic().
|
private |
Definition at line 138 of file nodelets.h.
Referenced by cleanupTopic(), and getTopic().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |