#include <Subscription.h>
Public Types | |
typedef RefCount< Subscription > | Pointer |
Public Member Functions | |
CallSubscription (const RefCount< Call_ > &aCall) | |
Must be passed an object. nil pointers are not permitted. More... | |
AsyncCall::Pointer | callback () const override |
Private Attributes | |
const RefCount< Call_ > | call |
gets copied to create callback calls More... | |
Detailed Description
class CallSubscription< Call_ >
Implements Subscription API using Call's copy constructor.
The subscriber creates one of these using a specific callback type and instance. The subscription object is then passed to a producer/factory which will use this API to generate calls. A subscription may be passed to multiple producers.
Call_ must have a copy constructor. A pointer to Call_ must be convertible to AsyncCall::Pointer
Definition at line 48 of file Subscription.h.
Member Typedef Documentation
◆ Pointer
|
inherited |
Definition at line 28 of file Subscription.h.
Constructor & Destructor Documentation
◆ CallSubscription()
|
inlineexplicit |
Definition at line 52 of file Subscription.h.
References assert.
Member Function Documentation
◆ callback()
|
inlineoverridevirtual |
returns a call object to be used for the next call back. Child implementations must ensure the Call pointer produced is not NULL.
Implements Subscription.
Definition at line 53 of file Subscription.h.
References CallSubscription< Call_ >::call, AsyncCall::codeContext, and CodeContext::Current().
Member Data Documentation
◆ call
|
private |
Definition at line 62 of file Subscription.h.
Referenced by CallSubscription< Call_ >::callback().
The documentation for this class was generated from the following file:
- src/base/Subscription.h