#include <graph.hpp>
Definition at line 110 of file graph.hpp.
Public Types | |
typedef const vertex_type | value_type |
typedef const vertex_type & | reference |
typedef const vertex_type *const | pointer |
typedef ptrdiff_t | difference_type |
typedef std::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
graph_vertex_iterator () | |
Constructor of the graph_vertex_iterator class. | |
graph_vertex_iterator & | operator++ () |
Preincrement. | |
graph_vertex_iterator | operator++ (int) |
Postincrement. | |
graph_vertex_iterator & | operator-- () |
Predecrement. | |
graph_vertex_iterator | operator-- (int) |
Postdecrement. | |
reference | operator* () const |
Dereference. | |
pointer | operator-> () const |
Reference. | |
bool | operator== (const graph_vertex_iterator &it) const |
Equality. | |
bool | operator!= (const graph_vertex_iterator &it) const |
Difference. | |
Private Member Functions | |
graph_vertex_iterator (typename graph_content::const_iterator it) | |
Constructor with an iterator on graph class data. | |
Private Attributes | |
graph_content::const_iterator | m_iterator |
Iterator on the list of vertex. | |
Friends | |
class | graph< vertex_type, edge_type, vertex_compare > |
typedef const vertex_type claw::graph< S, A, Comp >::graph_vertex_iterator::value_type |
typedef const vertex_type& claw::graph< S, A, Comp >::graph_vertex_iterator::reference |
typedef const vertex_type* const claw::graph< S, A, Comp >::graph_vertex_iterator::pointer |
typedef ptrdiff_t claw::graph< S, A, Comp >::graph_vertex_iterator::difference_type |
typedef std::bidirectional_iterator_tag claw::graph< S, A, Comp >::graph_vertex_iterator::iterator_category |
claw::graph< S, A, Comp >::graph_vertex_iterator::graph_vertex_iterator | ( | ) | [inline] |
claw::graph< S, A, Comp >::graph_vertex_iterator::graph_vertex_iterator | ( | typename graph_content::const_iterator | it | ) | [inline, explicit, private] |
Constructor with an iterator on graph class data.
it | Iterator where scan starts. |
Definition at line 209 of file graph.tpp.
00210 : m_iterator(it) 00211 { 00212 00213 } // graph_vertex_iterator() [constructor on an iterator]
claw::graph< S, A, Comp >::graph_vertex_iterator & claw::graph< S, A, Comp >::graph_vertex_iterator::operator++ | ( | ) | [inline] |
Preincrement.
Definition at line 100 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00101 { 00102 ++m_iterator; 00103 return *this; 00104 } // operator++() [preincrement]
claw::graph< S, A, Comp >::graph_vertex_iterator claw::graph< S, A, Comp >::graph_vertex_iterator::operator++ | ( | int | ) | [inline] |
Postincrement.
Definition at line 113 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00114 { 00115 graph_vertex_iterator it_tmp(*this); 00116 m_iterator++; 00117 return *this; 00118 } // operator++() [postincrement]
claw::graph< S, A, Comp >::graph_vertex_iterator & claw::graph< S, A, Comp >::graph_vertex_iterator::operator-- | ( | ) | [inline] |
Predecrement.
Definition at line 127 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00128 { 00129 --m_iterator; 00130 return *this; 00131 } // operator--() [predecrement]
claw::graph< S, A, Comp >::graph_vertex_iterator claw::graph< S, A, Comp >::graph_vertex_iterator::operator-- | ( | int | ) | [inline] |
Postdecrement.
Definition at line 140 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00141 { 00142 graph_vertex_iterator it_tmp(*this); 00143 m_iterator--; 00144 return it_tmp; 00145 } // operator--() [postdecrement]
claw::graph< S, A, Comp >::graph_vertex_iterator::reference claw::graph< S, A, Comp >::graph_vertex_iterator::operator* | ( | ) | const [inline] |
Dereference.
Definition at line 154 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00155 { 00156 return m_iterator->first; 00157 } // operator*()
claw::graph< S, A, Comp >::graph_vertex_iterator::pointer claw::graph< S, A, Comp >::graph_vertex_iterator::operator-> | ( | ) | const [inline] |
Reference.
Definition at line 166 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00167 { 00168 return &(m_iterator->first); 00169 } // operator->()
bool claw::graph< S, A, Comp >::graph_vertex_iterator::operator== | ( | const graph_vertex_iterator & | it | ) | const [inline] |
Equality.
it | Iterator to compare to. |
Definition at line 179 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00180 { 00181 return m_iterator == it.m_iterator; 00182 } // operator==()
bool claw::graph< S, A, Comp >::graph_vertex_iterator::operator!= | ( | const graph_vertex_iterator & | it | ) | const [inline] |
Difference.
it | Iterator to compare to. |
Definition at line 192 of file graph.tpp.
References claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator.
00193 { 00194 return m_iterator != it.m_iterator; 00195 } // operator!=()
friend class graph< vertex_type, edge_type, vertex_compare > [friend] |
graph_content::const_iterator claw::graph< S, A, Comp >::graph_vertex_iterator::m_iterator [private] |
Iterator on the list of vertex.
Definition at line 140 of file graph.hpp.
Referenced by claw::graph< S, A, Comp >::graph_vertex_iterator::operator!=(), claw::graph< S, A, Comp >::graph_vertex_iterator::operator*(), claw::graph< S, A, Comp >::graph_vertex_iterator::operator++(), claw::graph< S, A, Comp >::graph_vertex_iterator::operator--(), claw::graph< S, A, Comp >::graph_vertex_iterator::operator->(), and claw::graph< S, A, Comp >::graph_vertex_iterator::operator==().