CallSubscription< Call_ > Class Template Reference

#include <Subscription.h>

Inheritance diagram for CallSubscription< Call_ >:
Collaboration diagram for CallSubscription< Call_ >:

Public Types

typedef RefCount< SubscriptionPointer
 

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

template<class Call_>
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

Definition at line 28 of file Subscription.h.

Constructor & Destructor Documentation

◆ CallSubscription()

template<class Call_ >
CallSubscription< Call_ >::CallSubscription ( const RefCount< Call_ > &  aCall)
inlineexplicit

Definition at line 52 of file Subscription.h.

References assert.

Member Function Documentation

◆ callback()

template<class Call_ >
AsyncCall::Pointer CallSubscription< Call_ >::callback ( ) const
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

template<class Call_ >
const RefCount<Call_> CallSubscription< Call_ >::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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors