TAO::ARDB_Refcount_Functor Class Reference

Functor for refcounting of Asynch_Reply_Dispatcher_Base. More...

#include <Asynch_Reply_Dispatcher_Base.h>

List of all members.

Public Member Functions

void operator() (TAO_Asynch_Reply_Dispatcher_Base *ardb) throw ()


Detailed Description

Functor for refcounting of Asynch_Reply_Dispatcher_Base.

This is used to safely handle the destruction of Asynch_Reply_Dispatcher_Base objects which are created on the heap. We cannot use auto_ptr <> since it calls delete on the pointer, and calling delete on Asynch_Reply_Dispatcher_Base * will not work. Hence this functor will be used with Auto_Functor class to handle the memory safely.

Todo:
Ideally, this class can be a generic class. But that requires quite a bit of cleanup within TAO to be more useful.

Definition at line 153 of file Asynch_Reply_Dispatcher_Base.h.


Member Function Documentation

ACE_INLINE void TAO::ARDB_Refcount_Functor::operator() ( TAO_Asynch_Reply_Dispatcher_Base ardb  )  throw ()

Definition at line 10 of file Asynch_Reply_Dispatcher_Base.inl.

00012   {
00013     (void) ardb->decr_refcount ();
00014   }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:09 2010 for TAO by  doxygen 1.4.7