ACE_Configuration_ExtId Class Reference

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

#include <Configuration.h>

List of all members.

Public Member Functions

 ACE_Configuration_ExtId (void)
 Defeault ctor.

 ACE_Configuration_ExtId (const ACE_TCHAR *name)
 Named constructor.

 ACE_Configuration_ExtId (const ACE_Configuration_ExtId &rhs)
 Copy ctor.

 ~ACE_Configuration_ExtId (void)
 destructor

ACE_Configuration_ExtIdoperator= (const ACE_Configuration_ExtId &rhs)
 Assignment operator.

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

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

void free (ACE_Allocator *alloc)
u_long hash (void) const
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 575 of file Configuration.h.


Constructor & Destructor Documentation

ACE_Configuration_ExtId::ACE_Configuration_ExtId void   ) 
 

Defeault ctor.

Definition at line 1162 of file Configuration.cpp.

01163   : name_ (0)
01164 {
01165 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId const ACE_TCHAR name  )  [explicit]
 

Named constructor.

Definition at line 1167 of file Configuration.cpp.

References ACE_TCHAR.

01168   : name_ (name)
01169 {
01170 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId const ACE_Configuration_ExtId rhs  ) 
 

Copy ctor.

Definition at line 1172 of file Configuration.cpp.

01173   : name_ (rhs.name_)
01174 {
01175 }

ACE_Configuration_ExtId::~ACE_Configuration_ExtId void   ) 
 

destructor

Definition at line 1177 of file Configuration.cpp.

01178 {
01179 }


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

References ACE_Allocator::free(), and name_.

Referenced by ACE_Configuration_Heap::remove_section().

01216 {
01217   alloc->free ((void *) (name_));
01218 }

u_long ACE_Configuration_ExtId::hash void   )  const
 

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

Definition at line 1202 of file Configuration.cpp.

References ACE_TString, ACE_String_Base< CHAR >::hash(), and name_.

01203 {
01204   ACE_TString temp (name_, 0, 0);
01205   return temp.hash ();
01206 }

const ACE_TCHAR * ACE_Configuration_ExtId::name void   ) 
 

Definition at line 1209 of file Configuration.cpp.

References name_.

01210 {
01211   return name_;
01212 }

bool ACE_Configuration_ExtId::operator!= const ACE_Configuration_ExtId rhs  )  const
 

Inequality comparison operator.

Definition at line 1196 of file Configuration.cpp.

References name_, and ACE_OS::strcmp().

01197 {
01198   return (ACE_OS::strcmp (name_, rhs.name_) != 0);
01199 }

ACE_Configuration_ExtId & ACE_Configuration_ExtId::operator= const ACE_Configuration_ExtId rhs  ) 
 

Assignment operator.

Definition at line 1181 of file Configuration.cpp.

References name_.

01182 {
01183   if (this != &rhs)
01184     name_ = rhs.name_;
01185 
01186   return *this;
01187 }

bool ACE_Configuration_ExtId::operator== const ACE_Configuration_ExtId rhs  )  const
 

Equality comparison operator (must match name_).

Definition at line 1190 of file Configuration.cpp.

References name_, and ACE_OS::strcmp().

01191 {
01192   return (ACE_OS::strcmp (name_, rhs.name_) == 0);
01193 }


Member Data Documentation

const ACE_TCHAR* ACE_Configuration_ExtId::name_
 

Definition at line 609 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 Thu Nov 9 11:20:52 2006 for ACE by doxygen 1.3.6