Namespaces | |
namespace | gazebo::event |
Event namespace. | |
Classes | |
class | Connection |
A class that encapsulates a connection. More... | |
class | Event |
Base class for all events. More... | |
class | Events |
An Event class to get notifications for simulator events. More... | |
class | EventT< T > |
A class for event processing. More... | |
Functions | |
EventT () | |
Constructor. | |
virtual | ~EventT () |
Destructor. | |
ConnectionPtr | Connect (const std::function< T > &_subscriber) |
Connect a callback to this event. | |
unsigned int | ConnectionCount () const |
Get the number of connections. | |
virtual void | Disconnect (int _id) |
Disconnect a callback to this event. | |
EventT | ( | ) |
Constructor.
References Event::Event().
|
virtual |
Destructor.
Destructor. Deletes all the associated connections.
ConnectionPtr Connect | ( | const std::function< T > & | _subscriber | ) |
Connect a callback to this event.
Adds a connection.
[in] | _subscriber | Pointer to a callback function. |
[in] | _subscriber | the subscriber to connect. |
unsigned int ConnectionCount | ( | ) | const |
Get the number of connections.
|
virtual |
Disconnect a callback to this event.
Removes a connection.
[in] | _id | The id of the connection to disconnect. |
[in] | _id | the connection index. |
Implements Event.