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

01137   : name_ (0)
01138 {
01139 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId ( const ACE_TCHAR name  )  [explicit]

Named constructor.

Definition at line 1141 of file Configuration.cpp.

01142   : name_ (name)
01143 {
01144 }

ACE_Configuration_ExtId::ACE_Configuration_ExtId ( const ACE_Configuration_ExtId rhs  ) 

Copy ctor.

Definition at line 1146 of file Configuration.cpp.

01147   : name_ (rhs.name_)
01148 {
01149 }

ACE_Configuration_ExtId::~ACE_Configuration_ExtId ( void   ) 

destructor

Definition at line 1151 of file Configuration.cpp.

01152 {
01153 }


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().

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

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

01177 {
01178   ACE_TString temp (name_, 0, false);
01179   return temp.hash ();
01180 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE const ACE_TCHAR * ACE_Configuration_ExtId::name ( void   ) 

Definition at line 8 of file Configuration.inl.

References name_.

00009 {
00010   return name_;
00011 }

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

Inequality comparison operator.

Definition at line 1170 of file Configuration.cpp.

References operator==().

01171 {
01172   return !this->operator== (rhs);
01173 }

ACE_Configuration_ExtId & ACE_Configuration_ExtId::operator= ( const ACE_Configuration_ExtId rhs  ) 

Assignment operator.

Definition at line 1155 of file Configuration.cpp.

References name_.

01156 {
01157   if (this != &rhs)
01158     name_ = rhs.name_;
01159 
01160   return *this;
01161 }

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

Equality comparison operator (must match name_).

Definition at line 1164 of file Configuration.cpp.

References name_, and ACE_OS::strcasecmp().

Referenced by operator!=().

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


Member Data Documentation

const ACE_TCHAR* ACE_Configuration_ExtId::name_

Definition at line 609 of file Configuration.h.

Referenced by ACE_Configuration_Heap::enumerate_sections(), ACE_Configuration_Heap::enumerate_values(), free(), hash(), name(), operator=(), and operator==().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:35:00 2010 for ACE by  doxygen 1.4.7