ACE_Event_Handler::Reference_Counting_Policy Class Reference

This policy dictates the reference counting requirements for the handler. More...

#include <Event_Handler.h>

Inheritance diagram for ACE_Event_Handler::Reference_Counting_Policy:

Inheritance graph
[legend]
Collaboration diagram for ACE_Event_Handler::Reference_Counting_Policy:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Value { ENABLED, DISABLED }

Public Member Functions

Value value (void) const
 Current Reference_Counting_Policy.

void value (Value value)
 Update Reference_Counting_Policy.


Private Member Functions

 Reference_Counting_Policy (Value value)
 Private constructor.


Private Attributes

Value value_
 The value of the policy.


Friends

class ACE_Event_Handler
 This policy can only be created by the handler.


Detailed Description

This policy dictates the reference counting requirements for the handler.

This policy allows applications to configure whether it wants the Reactor to call add_reference() and remove_reference() during registrations, removals, and upcalls.

Default: DISABLED.

Definition at line 253 of file Event_Handler.h.


Member Enumeration Documentation

enum ACE_Event_Handler::Reference_Counting_Policy::Value
 

Enumeration values:
ENABLED  Perform reference counting.
DISABLED  Don't perform reference counting.

Definition at line 260 of file Event_Handler.h.

00261       {
00262         /// Perform reference counting.
00263         ENABLED,
00264         /// Don't perform reference counting.
00265         DISABLED
00266       };


Constructor & Destructor Documentation

ACE_Event_Handler::Reference_Counting_Policy::Reference_Counting_Policy Value  value  )  [private]
 

Private constructor.

Definition at line 228 of file Event_Handler.cpp.

00229   : value_ (value)
00230 {
00231 }


Member Function Documentation

void ACE_Event_Handler::Reference_Counting_Policy::value Value  value  ) 
 

Update Reference_Counting_Policy.

Definition at line 240 of file Event_Handler.cpp.

00241 {
00242   this->value_ = value;
00243 }

ACE_Event_Handler::Reference_Counting_Policy::Value ACE_Event_Handler::Reference_Counting_Policy::value void   )  const
 

Current Reference_Counting_Policy.

Definition at line 234 of file Event_Handler.cpp.

Referenced by ACE_Event_Handler::add_reference(), and ACE_Event_Handler::remove_reference().

00235 {
00236   return this->value_;
00237 }


Friends And Related Function Documentation

friend class ACE_Event_Handler [friend]
 

This policy can only be created by the handler.

Definition at line 256 of file Event_Handler.h.


Member Data Documentation

Value ACE_Event_Handler::Reference_Counting_Policy::value_ [private]
 

The value of the policy.

Definition at line 280 of file Event_Handler.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:22:05 2006 for ACE by doxygen 1.3.6