Public Member Functions

TAO::ARH_Refcount_Functor Class Reference

Functor for refcounting of TAO_AMH_Response_Handler. More...

#include <AMH_Response_Handler.h>

List of all members.

Public Member Functions

void operator() (TAO_AMH_Response_Handler *arh) throw ()

Detailed Description

Functor for refcounting of TAO_AMH_Response_Handler.

This is used to safely handle the destruction of TAO_AMH_Response_Handler objects which are created on the heap. We cannot use auto_ptr <> since it calls delete on the pointer, and calling delete on TAO_AMH_Response_Handler * 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 210 of file AMH_Response_Handler.h.


Member Function Documentation

void TAO::ARH_Refcount_Functor::operator() ( TAO_AMH_Response_Handler arh  )  throw ()

Definition at line 317 of file AMH_Response_Handler.cpp.

  {
    (void) arh->_remove_ref ();
  }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines