#include <Configuration.h>
Collaboration diagram for ACE_Configuration_Section_Key:
Public Member Functions | |
ACE_Configuration_Section_Key (void) | |
Default constructor. | |
ACE_Configuration_Section_Key (ACE_Section_Key_Internal *key) | |
Constructor that initializes to a pointer to a concrete internal key. | |
ACE_Configuration_Section_Key (const ACE_Configuration_Section_Key &rhs) | |
Copy constructor, increments the reference count on the key. | |
~ACE_Configuration_Section_Key (void) | |
Destructor, decrements reference count on the referenced key. | |
ACE_Configuration_Section_Key & | operator= (const ACE_Configuration_Section_Key &rhs) |
Private Attributes | |
ACE_Section_Key_Internal * | key_ |
Friends | |
class | ACE_Configuration |
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 98 of file Configuration.h.
ACE_Configuration_Section_Key::ACE_Configuration_Section_Key | ( | void | ) |
Default constructor.
Definition at line 46 of file Configuration.cpp.
00047 : key_ (0) 00048 { 00049 }
ACE_Configuration_Section_Key::ACE_Configuration_Section_Key | ( | ACE_Section_Key_Internal * | key | ) | [explicit] |
Constructor that initializes to a pointer to a concrete internal key.
key | The section key to reference. Calls add_ref() with key. |
Definition at line 57 of file Configuration.cpp.
References ACE_Section_Key_Internal::add_ref(), and key_.
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 64 of file Configuration.cpp.
References ACE_Section_Key_Internal::add_ref(), and key_.
ACE_Configuration_Section_Key::~ACE_Configuration_Section_Key | ( | void | ) |
Destructor, decrements reference count on the referenced key.
Definition at line 51 of file Configuration.cpp.
References ACE_Section_Key_Internal::dec_ref(), and key_.
00052 { 00053 if (key_) 00054 key_->dec_ref (); 00055 }
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 72 of file Configuration.cpp.
References ACE_Section_Key_Internal::add_ref(), and key_.
00073 { 00074 if (this != &rhs) 00075 { 00076 if (key_) 00077 key_->dec_ref (); 00078 00079 key_ = rhs.key_; 00080 00081 if (key_) 00082 key_->add_ref (); 00083 } 00084 return *this; 00085 }
friend class ACE_Configuration [friend] |
Definition at line 100 of file Configuration.h.
Definition at line 122 of file Configuration.h.
Referenced by ACE_Configuration_Section_Key(), ACE_Configuration::get_internal_key(), operator=(), and ~ACE_Configuration_Section_Key().