idep_NameIndexMap Class Reference

#include <idep_nameindexmap.h>

List of all members.

Public Member Functions

 idep_NameIndexMap (int maxEntriesHint=0)
 ~idep_NameIndexMap ()
int add (const char *name)
int entry (const char *name)
const char * operator[] (int) const
int length () const
int lookup (const char *name) const

Private Member Functions

 idep_NameIndexMap (const idep_NameIndexMap &)
idep_NameIndexMapoperator= (const idep_NameIndexMap &)

Private Attributes

idep_NameIndexMap_id_this

Detailed Description

Definition at line 11 of file idep_nameindexmap.h.


Constructor & Destructor Documentation

idep_NameIndexMap::idep_NameIndexMap ( const idep_NameIndexMap  )  [private]
idep_NameIndexMap::idep_NameIndexMap ( int  maxEntriesHint = 0  ) 

Definition at line 109 of file idep_nimap.cxx.

00110 : d_this(new idep_NameIndexMap_i(maxEntriesHint))
00111 {
00112 } 

idep_NameIndexMap::~idep_NameIndexMap (  ) 

Definition at line 114 of file idep_nimap.cxx.

References d_this.

00115 {
00116     delete d_this;
00117 }                                     


Member Function Documentation

int idep_NameIndexMap::add ( const char *  name  ) 
int idep_NameIndexMap::entry ( const char *  name  ) 

Definition at line 125 of file idep_nimap.cxx.

References idep_NameIndexMapLink::d_index, d_this, find(), idep_NameIndexMap_i::findSlot(), and idep_NameIndexMap_i::insert().

Referenced by idep_LinkDep_i::entry(), idep_AliasDep::extract(), getDep(), and idep_AliasDep::unpaired().

00126 {
00127     idep_NameIndexMapLink *& slot = d_this->findSlot(name);
00128     const idep_NameIndexMapLink *link = find(slot, name);
00129     return link ? link->d_index : d_this->insert(slot, name);
00130 }

int idep_NameIndexMap::length (  )  const
int idep_NameIndexMap::lookup ( const char *  name  )  const

Definition at line 142 of file idep_nimap.cxx.

References BAD_INDEX, idep_NameIndexMapLink::d_index, d_this, find(), and idep_NameIndexMap_i::findSlot().

Referenced by idep_LinkDep_i::entry(), idep_AliasDep::extract(), idep_AliasDep::unpaired(), and idep_AliasDep::verify().

00143 {
00144     idep_NameIndexMapLink *& slot = d_this->findSlot(name);
00145     const idep_NameIndexMapLink *link = find(slot, name);
00146     return link ? link->d_index : BAD_INDEX;
00147 }

idep_NameIndexMap& idep_NameIndexMap::operator= ( const idep_NameIndexMap  )  [private]
const char * idep_NameIndexMap::operator[] ( int  i  )  const

Definition at line 132 of file idep_nimap.cxx.

References idep_NameIndexMap_i::d_array, and d_this.

00133 {
00134     return d_this->d_array[i];
00135 }


Member Data Documentation

Definition at line 12 of file idep_nameindexmap.h.

Referenced by add(), entry(), length(), lookup(), operator[](), and ~idep_NameIndexMap().


The documentation for this class was generated from the following files:

Generated on 24 Apr 2018 for loon by  doxygen 1.6.1