idep_AliasTableIter Class Reference

#include <idep_aliastable.h>

List of all members.

Public Member Functions

 idep_AliasTableIter (const idep_AliasTable &table)
 ~idep_AliasTableIter ()
void reset ()
void operator++ ()
 operator const void * () const
const char * alias () const
const char * originalName () const

Private Member Functions

 idep_AliasTableIter (const idep_AliasTableIter &)
idep_AliasTableIteroperator= (const idep_AliasTableIter &)

Private Attributes

const idep_AliasTabled_table
idep_AliasTableLinkd_link_p
int d_index

Detailed Description

Definition at line 46 of file idep_aliastable.h.


Constructor & Destructor Documentation

idep_AliasTableIter::idep_AliasTableIter ( const idep_AliasTableIter  )  [private]
idep_AliasTableIter::idep_AliasTableIter ( const idep_AliasTable table  ) 

Definition at line 131 of file idep_altab.cxx.

References reset().

00132 : d_table(t)
00133 {
00134     reset();
00135 }

idep_AliasTableIter::~idep_AliasTableIter (  ) 

Definition at line 137 of file idep_altab.cxx.

00138 {
00139 }


Member Function Documentation

const char * idep_AliasTableIter::alias (  )  const

Definition at line 166 of file idep_altab.cxx.

References idep_AliasTableLink::d_alias_p, and d_link_p.

Referenced by idep_AliasIter::fromName(), and operator<<().

00167 { 
00168     return d_link_p->d_alias_p;
00169 }

idep_AliasTableIter::operator const void * (  )  const

Definition at line 161 of file idep_altab.cxx.

References d_index, idep_AliasTable::d_size, and d_table.

00162 { 
00163     return d_index < d_table.d_size ? this : 0;
00164 }

void idep_AliasTableIter::operator++ (  ) 

Definition at line 148 of file idep_altab.cxx.

References d_index, d_link_p, idep_AliasTableLink::d_next_p, d_table, and idep_AliasTable::d_table_p.

00149 { 
00150     if (d_link_p) {
00151         d_link_p = d_link_p->d_next_p;
00152     }   
00153     while (!d_link_p && *this) {
00154         ++d_index;
00155         if (*this) {
00156             d_link_p = d_table.d_table_p[d_index]; 
00157         }
00158     }    
00159 }    

idep_AliasTableIter& idep_AliasTableIter::operator= ( const idep_AliasTableIter  )  [private]
const char * idep_AliasTableIter::originalName (  )  const

Definition at line 171 of file idep_altab.cxx.

References d_link_p, and idep_AliasTableLink::d_originalName_p.

Referenced by operator<<(), and idep_AliasIter::toName().

00172 { 
00173     return d_link_p->d_originalName_p;
00174 }

void idep_AliasTableIter::reset (  ) 

Definition at line 141 of file idep_altab.cxx.

References d_index, and d_link_p.

Referenced by idep_AliasTableIter(), and operator<<().

00142 {
00143     d_link_p = 0;
00144     d_index = -1;
00145     ++*this;
00146 }


Member Data Documentation

Definition at line 49 of file idep_aliastable.h.

Referenced by operator const void *(), operator++(), and reset().

Definition at line 48 of file idep_aliastable.h.

Referenced by alias(), operator++(), originalName(), and reset().

Definition at line 47 of file idep_aliastable.h.

Referenced by operator const void *(), and operator++().


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

Generated on 18 Jan 2018 for loon by  doxygen 1.6.1