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

01133   : name_ (0)
01134 {
01135 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId const ACE_TCHAR name  )  [explicit]
 

Named constructor.

Definition at line 1137 of file Configuration.cpp.

References ACE_TCHAR.

01138   : name_ (name)
01139 {
01140 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId const ACE_Configuration_ExtId rhs  ) 
 

Copy ctor.

Definition at line 1142 of file Configuration.cpp.

01143   : name_ (rhs.name_)
01144 {
01145 }

ACE_Configuration_ExtId::~ACE_Configuration_ExtId void   ) 
 

destructor

Definition at line 1147 of file Configuration.cpp.

01148 {
01149 }


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

References ACE_Allocator::free(), and name_.

Referenced by ACE_Configuration_Heap::remove_section().

01186 {
01187   alloc->free ((void *) (name_));
01188 }

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

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

01173 {
01174   ACE_TString temp (name_, 0, false);
01175   return temp.hash ();
01176 }

const ACE_TCHAR * ACE_Configuration_ExtId::name void   ) 
 

Definition at line 1179 of file Configuration.cpp.

References name_.

01180 {
01181   return name_;
01182 }

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

Inequality comparison operator.

Definition at line 1166 of file Configuration.cpp.

References name_, and ACE_OS::strcasecmp().

01167 {
01168   return (ACE_OS::strcasecmp (name_, rhs.name_) != 0);
01169 }

ACE_Configuration_ExtId & ACE_Configuration_ExtId::operator= const ACE_Configuration_ExtId rhs  ) 
 

Assignment operator.

Definition at line 1151 of file Configuration.cpp.

References name_.

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

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

Equality comparison operator (must match name_).

Definition at line 1160 of file Configuration.cpp.

References name_, and ACE_OS::strcasecmp().

01161 {
01162   return (ACE_OS::strcasecmp (name_, rhs.name_) == 0);
01163 }


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 Sun Jan 27 12:54:18 2008 for ACE by doxygen 1.3.6