Abstract interface for items which can be added to a CallbackQueueInterface. More...
#include <callback_queue_interface.h>
Public Types | |
enum | CallResult { Success, TryAgain, Invalid } |
Possible results for the call() method. More... | |
Public Member Functions | |
virtual CallResult | call ()=0 |
Call this callback. | |
virtual bool | ready () |
Provides the opportunity for specifying that a callback is not ready to be called before call() actually takes place. | |
virtual | ~CallbackInterface () |
Abstract interface for items which can be added to a CallbackQueueInterface.
Definition at line 48 of file callback_queue_interface.h.
Possible results for the call() method.
Success |
Call succeeded. |
TryAgain |
Call not ready, try again later. |
Invalid |
Call no longer valid. |
Definition at line 54 of file callback_queue_interface.h.
virtual ros::CallbackInterface::~CallbackInterface | ( | ) | [inline, virtual] |
Definition at line 61 of file callback_queue_interface.h.
virtual CallResult ros::CallbackInterface::call | ( | ) | [pure virtual] |
Call this callback.
Implemented in TimerRecursionCallback, RecursiveCallback, ros::TimerManager< T, D, E >::TimerQueueCallback, SelfRemovingCallback, ros::ServiceCallback, ros::SubscriptionQueue, CountingCallback, and ros::PeerConnDisconnCallback.
virtual bool ros::CallbackInterface::ready | ( | ) | [inline, virtual] |
Provides the opportunity for specifying that a callback is not ready to be called before call() actually takes place.
Reimplemented in ros::SubscriptionQueue.
Definition at line 72 of file callback_queue_interface.h.