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

00023 {
00024 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Section_Key_Internal::ACE_Section_Key_Internal void   )  [protected]
 

Definition at line 17 of file Configuration.cpp.

00018   : ref_count_ (0)
00019 {
00020 }

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

References ref_count_.

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

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

int ACE_Section_Key_Internal::dec_ref void   )  [virtual]
 

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

Definition at line 34 of file Configuration.cpp.

References ref_count_.

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

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

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 Thu Nov 9 11:28:33 2006 for ACE by doxygen 1.3.6