Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ACE_RMCast_Singleton_Factory Class Reference

Implement an ACE_RMCast_Module_Factory that "creates" a single object. More...

#include <RMCast_Singleton_Factory.h>

Inheritance diagram for ACE_RMCast_Singleton_Factory:

Inheritance graph
Collaboration diagram for ACE_RMCast_Singleton_Factory:

Collaboration graph
List of all members.

Public Methods

 ACE_RMCast_Singleton_Factory (ACE_RMCast_Module *singleton)
 Constructor. More...

virtual ~ACE_RMCast_Singleton_Factory (void)
 Destructor. More...

virtual ACE_RMCast_Modulecreate (void)
 Create a new proxy. More...

virtual void destroy (ACE_RMCast_Module *)
 Destroy a proxy. More...

Private Attributes

 The singleton object. More...

Detailed Description

Implement an ACE_RMCast_Module_Factory that "creates" a single object.

Many applications (and even some internal components), will use a single ACE_RMCast_Module to process all the events, for example, a receiver may decide to use the same ACE_RMCast_Module to process all incoming events, instead of using one per remote sender.

Definition at line 35 of file RMCast_Singleton_Factory.h.

Constructor & Destructor Documentation

ACE_INLINE ACE_RMCast_Singleton_Factory::ACE_RMCast_Singleton_Factory ACE_RMCast_Module   singleton


singleton  This object is returned by any call to create().

Definition at line 5 of file RMCast_Singleton_Factory.i.

00006       : singleton_ (singleton)
00007 {
00008 }

ACE_RMCast_Singleton_Factory::~ACE_RMCast_Singleton_Factory void    [virtual]


Definition at line 11 of file RMCast_Singleton_Factory.cpp.

00012 {
00013 }

Member Function Documentation

ACE_RMCast_Module * ACE_RMCast_Singleton_Factory::create void    [virtual]

Create a new proxy.

Implements ACE_RMCast_Module_Factory.

Definition at line 16 of file RMCast_Singleton_Factory.cpp.

References singleton_.

00017 {
00018   return this->singleton_;
00019 }

void ACE_RMCast_Singleton_Factory::destroy ACE_RMCast_Module   [virtual]

Destroy a proxy.

Some factories may allocate modules from a pool, or return the same module for all proxies. Consequently, only the factory knows how to destroy them.

Implements ACE_RMCast_Module_Factory.

Definition at line 22 of file RMCast_Singleton_Factory.cpp.

00023 {
00024 }

Member Data Documentation

ACE_RMCast_Module* ACE_RMCast_Singleton_Factory::singleton_ [private]

The singleton object.

Definition at line 53 of file RMCast_Singleton_Factory.h.

Referenced by create.

The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:14:19 2003 for ACE_RMCast by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002