#include <adjgraph.h>
Classes | |
struct | value_type |
Public Types | |
typedef graph::adj_list | adj_list |
typedef graph::edge_list | edge_list |
typedef graph::index_type | index_type |
typedef value_type * | pointer |
typedef value_type & | reference |
Public Member Functions | |
bool | operator!= (const const_iterator &i) const |
const value_type & | operator* () const |
void | operator++ () |
const value_type * | operator-> () const |
bool | operator== (const const_iterator &i) const |
Private Member Functions | |
const_iterator (const graph &g) | |
const_iterator (const graph &g, index_type ait, index_type eit) | |
bool | operator< (const const_iterator &i) const |
bool | operator> (const const_iterator &i) const |
Private Attributes | |
value_type | vt_ |
Friends | |
class | graph< N, E > |
Definition at line 19 of file adjgraph.h.
typedef graph::adj_list graph< N, E >::const_iterator::adj_list |
Definition at line 24 of file adjgraph.h.
typedef graph::edge_list graph< N, E >::const_iterator::edge_list |
Definition at line 25 of file adjgraph.h.
typedef graph::index_type graph< N, E >::const_iterator::index_type |
Definition at line 23 of file adjgraph.h.
typedef value_type* graph< N, E >::const_iterator::pointer |
Definition at line 43 of file adjgraph.h.
typedef value_type& graph< N, E >::const_iterator::reference |
Definition at line 42 of file adjgraph.h.
graph< N, E >::const_iterator::const_iterator | ( | const graph & | g | ) | [inline, explicit, private] |
Definition at line 81 of file adjgraph.h.
: vt_(g, 0, 0) { }
graph< N, E >::const_iterator::const_iterator | ( | const graph & | g, |
index_type | ait, | ||
index_type | eit | ||
) | [inline, private] |
Definition at line 85 of file adjgraph.h.
: vt_(g, ait, eit) { }
bool graph< N, E >::const_iterator::operator!= | ( | const const_iterator & | i | ) | const [inline] |
Definition at line 49 of file adjgraph.h.
References graph< N, E >::const_iterator::value_type::a_, graph< N, E >::const_iterator::value_type::e_, and graph< N, E >::const_iterator::vt_.
const value_type& graph< N, E >::const_iterator::operator* | ( | void | ) | const [inline] |
Definition at line 72 of file adjgraph.h.
References graph< N, E >::const_iterator::vt_.
{ return vt_; }
void graph< N, E >::const_iterator::operator++ | ( | void | ) | [inline] |
Definition at line 53 of file adjgraph.h.
References graph< N, E >::const_iterator::value_type::a_, graph< N, E >::adjl_, graph< N, E >::const_iterator::value_type::e_, graph< N, E >::const_iterator::value_type::gr_, i, graph< N, E >::size(), and graph< N, E >::const_iterator::vt_.
{ while(vt_.gr_.size() > vt_.a_){ // std::cout << " it++: ait=" << vt_.a_ << " eit=" << vt_.e_ << std::endl; index_type i = vt_.gr_.adjl_[vt_.a_].size(); if (i > vt_.e_+1) { ++vt_.e_; return; } vt_.e_=0; ++vt_.a_; while( vt_.gr_.size() > vt_.a_ ) { if ( vt_.gr_.adjl_[vt_.a_].size() ) { return; } ++vt_.a_; } } }
const value_type* graph< N, E >::const_iterator::operator-> | ( | ) | const [inline] |
Definition at line 76 of file adjgraph.h.
References graph< N, E >::const_iterator::vt_.
{ return &vt_; }
bool graph< N, E >::const_iterator::operator< | ( | const const_iterator & | i | ) | const [inline, private] |
Definition at line 91 of file adjgraph.h.
References graph< N, E >::const_iterator::value_type::a_, graph< N, E >::const_iterator::value_type::e_, and graph< N, E >::const_iterator::vt_.
bool graph< N, E >::const_iterator::operator== | ( | const const_iterator & | i | ) | const [inline] |
Definition at line 45 of file adjgraph.h.
References graph< N, E >::const_iterator::value_type::a_, graph< N, E >::const_iterator::value_type::e_, and graph< N, E >::const_iterator::vt_.
bool graph< N, E >::const_iterator::operator> | ( | const const_iterator & | i | ) | const [inline, private] |
Definition at line 95 of file adjgraph.h.
References graph< N, E >::const_iterator::value_type::a_, graph< N, E >::const_iterator::value_type::e_, and graph< N, E >::const_iterator::vt_.
friend class graph< N, E > [friend] |
Definition at line 21 of file adjgraph.h.
value_type graph< N, E >::const_iterator::vt_ [private] |
Definition at line 89 of file adjgraph.h.
Referenced by graph< N, E >::const_iterator::operator!=(), graph< N, E >::const_iterator::operator*(), graph< N, E >::const_iterator::operator++(), graph< N, E >::const_iterator::operator->(), graph< N, E >::const_iterator::operator<(), graph< N, E >::const_iterator::operator==(), and graph< N, E >::const_iterator::operator>().