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 27 of file Configuration.cpp.

00028 {
00029 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Section_Key_Internal::ACE_Section_Key_Internal ( void   )  [protected]

Definition at line 22 of file Configuration.cpp.

00023   : ref_count_ (0)
00024 {
00025 }

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 32 of file Configuration.cpp.

References ref_count_.

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

00033 {
00034   ++ref_count_;
00035   return 0;
00036 }

int ACE_Section_Key_Internal::dec_ref ( void   )  [virtual]

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

Definition at line 39 of file Configuration.cpp.

References ref_count_.

Referenced by ACE_Configuration_Section_Key::~ACE_Configuration_Section_Key().

00040 {
00041   if (!--ref_count_)
00042     delete this;
00043   return 0;
00044 }

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 Tue Feb 2 17:35:32 2010 for ACE by  doxygen 1.4.7