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

ACE_Configuration_ExtId Class Reference

External ID for the section and value hash. More...

#include <Configuration.h>

List of all members.

Public Methods

 ACE_Configuration_ExtId (void)
 Defeault ctor. More...

ACE_EXPLICIT ACE_Configuration_ExtId (const ACE_TCHAR *name)
 Named constructor. More...

 ACE_Configuration_ExtId (const ACE_Configuration_ExtId &rhs)
 Copy ctor. More...

 ~ACE_Configuration_ExtId (void)
 destructor. More...

ACE_Configuration_ExtId & operator= (const ACE_Configuration_ExtId &rhs)
 Assignment operator. More...

int operator== (const ACE_Configuration_ExtId &rhs) const
 Equality comparison operator (must match name_). More...

int operator!= (const ACE_Configuration_ExtId &rhs) const
 Inequality comparison operator. More...

void free (ACE_Allocator *alloc)
 Frees the name of the value. needed since we don't know the allocator name_ was created in. More...

u_long hash (void) const
 <hash> function is required in order for this class to be usable by ACE_Hash_Map_Manager. More...

const ACE_TCHARname (void)

Public Attributes

const ACE_TCHARname_


Detailed Description

External ID for the section and value hash.

Contains a pointer to the section or value name.

Definition at line 556 of file Configuration.h.


Constructor & Destructor Documentation

ACE_Configuration_ExtId::ACE_Configuration_ExtId void   
 

Defeault ctor.

Definition at line 1130 of file Configuration.cpp.

01131   : name_ (0)
01132 {
01133 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId const ACE_TCHAR   name
 

Named constructor.

Definition at line 1135 of file Configuration.cpp.

References ACE_TCHAR.

01136   : name_ (name)
01137 {
01138 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId const ACE_Configuration_ExtId &    rhs
 

Copy ctor.

Definition at line 1140 of file Configuration.cpp.

01141   : name_ (rhs.name_)
01142 {
01143 }

ACE_Configuration_ExtId::~ACE_Configuration_ExtId void   
 

destructor.

Definition at line 1145 of file Configuration.cpp.

01146 {
01147 }


Member Function Documentation

void ACE_Configuration_ExtId::free ACE_Allocator   alloc
 

Frees the name of the value. needed since we don't know the allocator name_ was created in.

Definition at line 1183 of file Configuration.cpp.

References ACE_Allocator::free, and name_.

Referenced by ACE_Configuration_Heap::remove_section, and ACE_Configuration_Heap::remove_value.

01184 {
01185   alloc->free ((void *) (name_));
01186 }

u_long ACE_Configuration_ExtId::hash void    const
 

<hash> function is required in order for this class to be usable by ACE_Hash_Map_Manager.

Definition at line 1170 of file Configuration.cpp.

References ACE_String_Base< char >::hash, and name_.

01171 {
01172   ACE_TString temp (name_);
01173   return temp.hash ();
01174 }

const ACE_TCHAR * ACE_Configuration_ExtId::name void   
 

Definition at line 1177 of file Configuration.cpp.

References name_.

01178 {
01179   return name_;
01180 }

int ACE_Configuration_ExtId::operator!= const ACE_Configuration_ExtId &    rhs const
 

Inequality comparison operator.

Definition at line 1164 of file Configuration.cpp.

References name_, and ACE_OS_String::strcmp.

01165 {
01166   return (ACE_OS::strcmp (name_, rhs.name_) != 0);
01167 }

ACE_Configuration_ExtId & ACE_Configuration_ExtId::operator= const ACE_Configuration_ExtId &    rhs
 

Assignment operator.

Definition at line 1149 of file Configuration.cpp.

References name_.

01150 {
01151   if (this != &rhs)
01152     name_ = rhs.name_;
01153 
01154   return *this;
01155 }

int ACE_Configuration_ExtId::operator== const ACE_Configuration_ExtId &    rhs const
 

Equality comparison operator (must match name_).

Definition at line 1158 of file Configuration.cpp.

References name_, and ACE_OS_String::strcmp.

01159 {
01160   return (ACE_OS::strcmp (name_, rhs.name_) == 0);
01161 }


Member Data Documentation

const ACE_TCHAR* ACE_Configuration_ExtId::name_
 

Definition at line 590 of file Configuration.h.

Referenced by free, hash, name, operator!=, operator=, and operator==.


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