GSLAM
3.0.0
|
Classes | |
struct | Impl |
Public Member Functions | |
Subscriber (const std::string &topic, const SvarFunction &callback, size_t queue_size=0) | |
void | shutdown () |
Unsubscribe the callback associated with this Subscriber. More... | |
std::string | getTopic () const |
std::string | getTypeName () const |
uint32_t | getNumPublishers () const |
Returns the number of publishers this subscriber is connected to. | |
operator void * () const | |
bool | operator< (const Subscriber &rhs) const |
bool | operator== (const Subscriber &rhs) const |
bool | operator!= (const Subscriber &rhs) const |
Protected Member Functions | |
Subscriber (std::shared_ptr< Subscriber::Impl > impl) | |
virtual void | publish (const Svar &message) const |
std::string | key () const |
Protected Attributes | |
std::shared_ptr< Impl > | impl_ |
void shutdown | ( | ) |
Unsubscribe the callback associated with this Subscriber.
This method usually does not need to be explicitly called, as automatic shutdown happens when all copies of this Subscriber go out of scope
This method overrides the automatic reference counted unsubscribe, and immediately unsubscribes the callback associated with this Subscriber