Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Configuration_Section_Key Class Reference

Reference counted wrapper for ACE_Section_Key_Internal. More...

#include <Configuration.h>

Collaboration diagram for ACE_Configuration_Section_Key:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Configuration_Section_Key (void)
 Default constructor. More...

ACE_EXPLICIT ACE_Configuration_Section_Key (ACE_Section_Key_Internal *key)
 Constructor that initializes to a pointer to a concrete internal key. More...

 ACE_Configuration_Section_Key (const ACE_Configuration_Section_Key &rhs)
 Copy constructor, increments the reference count on the key. More...

 ~ACE_Configuration_Section_Key (void)
 Destructor, decrements reference count on the referenced key. More...

ACE_Configuration_Section_Key & operator= (const ACE_Configuration_Section_Key &rhs)
 Assignment operator, increments reference count for this object and decrements it on rhs. More...


Private Attributes

ACE_Section_Key_Internalkey_

Friends

class ACE_Configuration

Detailed Description

Reference counted wrapper for ACE_Section_Key_Internal.

Reference counted wrapper class for the abstract internal section key. A user gets one of these to represent a section in the configuration database.

Definition at line 92 of file Configuration.h.


Constructor & Destructor Documentation

ACE_Configuration_Section_Key::ACE_Configuration_Section_Key void   
 

Default constructor.

Definition at line 110 of file Configuration.cpp.

00111   : key_ (0)
00112 {
00113 }

ACE_Configuration_Section_Key::ACE_Configuration_Section_Key ACE_Section_Key_Internal   key
 

Constructor that initializes to a pointer to a concrete internal key.

Parameters:
key  The section key to reference. Calls add_ref() with key.

Definition at line 121 of file Configuration.cpp.

References ACE_Section_Key_Internal::add_ref, and key_.

00122   : key_ (key)
00123 {
00124   if (key_)
00125     key_->add_ref ();
00126 }

ACE_Configuration_Section_Key::ACE_Configuration_Section_Key const ACE_Configuration_Section_Key &    rhs
 

Copy constructor, increments the reference count on the key.

Definition at line 128 of file Configuration.cpp.

References ACE_Section_Key_Internal::add_ref, and key_.

00129   : key_ (rhs.key_)
00130 {
00131   if (key_)
00132     key_->add_ref ();
00133 }

ACE_Configuration_Section_Key::~ACE_Configuration_Section_Key void   
 

Destructor, decrements reference count on the referenced key.

Definition at line 115 of file Configuration.cpp.

References ACE_Section_Key_Internal::dec_ref, and key_.

00116 {
00117   if (key_)
00118     key_->dec_ref ();
00119 }


Member Function Documentation

ACE_Configuration_Section_Key & ACE_Configuration_Section_Key::operator= const ACE_Configuration_Section_Key &    rhs
 

Assignment operator, increments reference count for this object and decrements it on rhs.

Definition at line 136 of file Configuration.cpp.

References ACE_Section_Key_Internal::add_ref, ACE_Section_Key_Internal::dec_ref, and key_.

00137 {
00138   if (this != &rhs)
00139     {
00140       if (key_)
00141         key_->dec_ref ();
00142 
00143       key_ = rhs.key_;
00144 
00145       if (key_)
00146         key_->add_ref ();
00147     }
00148   return *this;
00149 }


Friends And Related Function Documentation

friend class ACE_Configuration [friend]
 

Definition at line 94 of file Configuration.h.


Member Data Documentation

ACE_Section_Key_Internal* ACE_Configuration_Section_Key::key_ [private]
 

Definition at line 116 of file Configuration.h.

Referenced by ACE_Configuration_Section_Key, ACE_Configuration::get_internal_key, operator=, and ~ACE_Configuration_Section_Key.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:46:50 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002