idep_DependencyIter Class Reference

#include <idep_linkdep.h>

List of all members.

Public Member Functions

 idep_DependencyIter (const idep_ComponentIter &componentIter)
 ~idep_DependencyIter ()
void operator++ ()
 operator const void * () const
const char * operator() () const
int level () const
int cycle () const

Private Member Functions

 idep_DependencyIter (const idep_DependencyIter &)
idep_DependencyIteroperator= (const idep_DependencyIter &)

Private Attributes

idep_DependencyIter_id_this

Detailed Description

Definition at line 363 of file idep_linkdep.h.


Constructor & Destructor Documentation

idep_DependencyIter::idep_DependencyIter ( const idep_DependencyIter  )  [private]
idep_DependencyIter::idep_DependencyIter ( const idep_ComponentIter componentIter  ) 

Definition at line 1433 of file idep_ldep.cxx.

01434 : d_this(new idep_DependencyIter_i(*iter.d_this))
01435 {
01436     ++*this;
01437 }

idep_DependencyIter::~idep_DependencyIter (  ) 

Definition at line 1439 of file idep_ldep.cxx.

References d_this.

01440 {
01441     delete d_this;
01442 }


Member Function Documentation

int idep_DependencyIter::cycle (  )  const

Definition at line 1473 of file idep_ldep.cxx.

References idep_DependencyIter_i::d_col, idep_LinkDep_i::d_cycleIndices_p, idep_DependencyIter_i::d_dep, idep_LinkDep_i::d_map_p, and d_this.

01474 {
01475     return d_this->d_dep.d_cycleIndices_p[      // levelized order
01476                                 d_this->d_dep.d_map_p[d_this->d_col]] + 1;
01477 }

int idep_DependencyIter::level (  )  const
idep_DependencyIter::operator const void * (  )  const

Definition at line 1456 of file idep_ldep.cxx.

References idep_DependencyIter_i::d_col, idep_DependencyIter_i::d_dep, idep_LinkDep_i::d_numComponents, and d_this.

01457 {
01458     return d_this->d_col < d_this->d_dep.d_numComponents ? this : 0;
01459 }

const char * idep_DependencyIter::operator() (  )  const
void idep_DependencyIter::operator++ (  ) 

Definition at line 1445 of file idep_ldep.cxx.

References idep_DependencyIter_i::d_col, idep_DependencyIter_i::d_dep, idep_LinkDep_i::d_dependencies_p, idep_LinkDep_i::d_map_p, idep_DependencyIter_i::d_row, d_this, and idep_BinRel::get().

01446 {
01447     assert(*this);
01448     do {
01449         ++d_this->d_col;
01450     } 
01451     while (*this &&                             // look in levelized order
01452            !d_this->d_dep.d_dependencies_p->get(d_this->d_row, 
01453                                 d_this->d_dep.d_map_p[d_this->d_col])); 
01454 }

idep_DependencyIter& idep_DependencyIter::operator= ( const idep_DependencyIter  )  [private]

Member Data Documentation


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

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1