Public Member Functions | Private Attributes | Friends

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 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_Keyoperator= (const ACE_Configuration_Section_Key &rhs)

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 96 of file Configuration.h.


Constructor & Destructor Documentation

ACE_Configuration_Section_Key::ACE_Configuration_Section_Key ( void   ) 

Default constructor.

Definition at line 47 of file Configuration.cpp.

  : key_ (0)
{
}

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.

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

Definition at line 58 of file Configuration.cpp.

  : key_ (key)
{
  if (key_)
    key_->add_ref ();
}

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

  : key_ (rhs.key_)
{
  if (key_)
    key_->add_ref ();
}

ACE_Configuration_Section_Key::~ACE_Configuration_Section_Key ( void   ) 

Destructor, decrements reference count on the referenced key.

Definition at line 52 of file Configuration.cpp.

{
  if (key_)
    key_->dec_ref ();
}


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

{
  if (this != &rhs)
    {
      if (key_)
        key_->dec_ref ();

      key_ = rhs.key_;

      if (key_)
        key_->add_ref ();
    }
  return *this;
}


Friends And Related Function Documentation

friend class ACE_Configuration [friend]

Definition at line 98 of file Configuration.h.


Member Data Documentation

Definition at line 120 of file Configuration.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines