ACE_Section_Key_Internal Class Reference

A base class for internal handles to section keys for configuration implementations. More...

#include <Configuration.h>

Inheritance diagram for ACE_Section_Key_Internal:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ACE_Section_Key_Internal (void)
 Virtual destructor, make sure descendants are virtual!

virtual int add_ref (void)
 Increment reference count.

virtual int dec_ref (void)
 Decrement reference count. Will delete this if count gets to 0.


Protected Member Functions

 ACE_Section_Key_Internal (void)
 ACE_Section_Key_Internal (const ACE_Section_Key_Internal &rhs)
ACE_Section_Key_Internaloperator= (ACE_Section_Key_Internal &rhs)

Protected Attributes

u_int ref_count_

Detailed Description

A base class for internal handles to section keys for configuration implementations.

For internal use only.

Implementations subclass this base class to represent a section key.

Definition at line 70 of file Configuration.h.


Constructor & Destructor Documentation

ACE_Section_Key_Internal::~ACE_Section_Key_Internal void   )  [virtual]
 

Virtual destructor, make sure descendants are virtual!

Definition at line 23 of file Configuration.cpp.

00024 {
00025 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Section_Key_Internal::ACE_Section_Key_Internal void   )  [protected]
 

Definition at line 18 of file Configuration.cpp.

00019   : ref_count_ (0)
00020 {
00021 }

ACE_Section_Key_Internal::ACE_Section_Key_Internal const ACE_Section_Key_Internal rhs  )  [protected]
 


Member Function Documentation

int ACE_Section_Key_Internal::add_ref void   )  [virtual]
 

Increment reference count.

Definition at line 28 of file Configuration.cpp.

References ref_count_.

Referenced by ACE_Configuration_Section_Key::ACE_Configuration_Section_Key(), and ACE_Configuration_Section_Key::operator=().

00029 {
00030   ++ref_count_;
00031   return 0;
00032 }

int ACE_Section_Key_Internal::dec_ref void   )  [virtual]
 

Decrement reference count. Will delete this if count gets to 0.

Definition at line 35 of file Configuration.cpp.

References ref_count_.

Referenced by ACE_Configuration_Section_Key::operator=(), and ACE_Configuration_Section_Key::~ACE_Configuration_Section_Key().

00036 {
00037   if (!--ref_count_)
00038     delete this;
00039   return 0;
00040 }

ACE_Section_Key_Internal& ACE_Section_Key_Internal::operator= ACE_Section_Key_Internal rhs  )  [protected]
 


Member Data Documentation

u_int ACE_Section_Key_Internal::ref_count_ [protected]
 

Definition at line 86 of file Configuration.h.

Referenced by add_ref(), and dec_ref().


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 12:57:05 2008 for ACE by doxygen 1.3.6