class mrpt::comms::Topic

#include <mrpt/comms/nodelets.h>

class Topic: public std::enable_shared_from_this< Topic >
{
public:
    // typedefs

    typedef std::shared_ptr<Topic> Ptr;

    //
methods

    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);

    template <typename CLEANUP>
    static Ptr create(CLEANUP&& cleanup);
};