Public Member Functions | Public Attributes

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


Constructor & Destructor Documentation

ACE_Configuration_ExtId::ACE_Configuration_ExtId ( void   ) 

Defeault ctor.

Definition at line 1128 of file Configuration.cpp.

  : name_ (0)
{
}

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

Named constructor.

Definition at line 1133 of file Configuration.cpp.

  : name_ (name)
{
}

ACE_Configuration_ExtId::ACE_Configuration_ExtId ( const ACE_Configuration_ExtId rhs  ) 

Copy ctor.

Definition at line 1138 of file Configuration.cpp.

  : name_ (rhs.name_)
{
}

ACE_Configuration_ExtId::~ACE_Configuration_ExtId ( void   ) 

destructor

Definition at line 1143 of file Configuration.cpp.

{
}


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

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

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

{
  ACE_TString temp (name_, 0, false);
  return temp.hash ();
}

const ACE_TCHAR * ACE_Configuration_ExtId::name ( void   )  [inline]

Definition at line 8 of file Configuration.inl.

{
  return name_;
}

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

Inequality comparison operator.

Definition at line 1162 of file Configuration.cpp.

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

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

Assignment operator.

Definition at line 1147 of file Configuration.cpp.

{
  if (this != &rhs)
    name_ = rhs.name_;

  return *this;
}

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

Equality comparison operator (must match name_).

Definition at line 1156 of file Configuration.cpp.

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


Member Data Documentation

Definition at line 607 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