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...
 
virtual AsyncCall::Pointer callback () const
 

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 convertable to AsyncCall::Pointer

Definition at line 48 of file Subscription.h.

Member Typedef Documentation

Definition at line 28 of file Subscription.h.

Constructor & Destructor Documentation

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

Definition at line 52 of file Subscription.h.

References assert, and NULL.

Member Function Documentation

template<class Call_>
virtual AsyncCall::Pointer CallSubscription< Call_ >::callback ( ) const
inlinevirtual

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.

Member Data Documentation

template<class Call_>
const RefCount<Call_> CallSubscription< Call_ >::call
private

Definition at line 56 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