#include <graph_nbh_iter.hh>
Public Types | |
typedef Proxy< void > | category |
typedef vertex_nbh_vertex_fwd_iterator < G > | exact_t |
Public Member Functions | |
vertex_nbh_vertex_fwd_iterator () | |
Construction and assignment. | |
template<typename C > | |
vertex_nbh_vertex_fwd_iterator (const C &c) | |
bool | is_valid () const |
Iterator interface. | |
void | invalidate () |
Invalidate the iterator. | |
void | start () |
Start an iteration. | |
void | next () |
Go to the next value. | |
unsigned | index () const |
Return current index. | |
util::vertex< G >::id_t | id () const |
Returns the element ID. | |
operator typename util::vertex< G >::id_t () const | |
Conversion operator. Returns the element id. | |
operator typename util::vertex< G >::id_value_t () const | |
Conversion operator. | |
const util::vertex< G > & | center () const |
The psite around which this iterator moves. | |
void | center_at (const p_indexed_psite< S > &c) |
Make c the center of this iterator. | |
void | center_at (const C2 &c) |
void | change_target (const G &g) |
Change the graph targeted by this iterator. | |
const util::vertex< G > & | element () const |
Return the underlying element. | |
const util::vertex< G > & | elt_hook_ () const |
Hook to the current location. | |
const util::vertex< G > & | subj_ () |
Proxy. | |
Protected Member Functions | |
unsigned | next_id_ () const |
Go to the next value. | |
unsigned | start_id_ () const |
Start an iteration. | |
void | update_ () |
bool | is_valid_ () const |
Protected Attributes | |
const util::vertex< G > * | c_ |
util::vertex< G > | elt_ |
unsigned | i_ |
Private Types | |
typedef vertex_nbh_vertex_fwd_iterator < G > | self_ |
typedef nbh_iterator_base< G, V, V, self_ > | super_ |
typedef util::vertex< G > | V |
Friends | |
class | nbh_iterator_base< G, V, V, self_ > |
typedef Proxy<void> mln::Proxy< vertex_nbh_vertex_fwd_iterator< G > >::category [inherited] |
Reimplemented from mln::Object< vertex_nbh_vertex_fwd_iterator< G > >.
typedef vertex_nbh_vertex_fwd_iterator< G > mln::Object< vertex_nbh_vertex_fwd_iterator< G > >::exact_t [inherited] |
typedef vertex_nbh_vertex_fwd_iterator<G> mln::internal::vertex_nbh_vertex_fwd_iterator< G >::self_ [private] |
typedef nbh_iterator_base<G, V, V, self_> mln::internal::vertex_nbh_vertex_fwd_iterator< G >::super_ [private] |
typedef util::vertex<G> mln::internal::vertex_nbh_vertex_fwd_iterator< G >::V [private] |
mln::internal::vertex_nbh_vertex_fwd_iterator< G >::vertex_nbh_vertex_fwd_iterator | ( | ) | [inline] |
Construction and assignment.
mln::internal::vertex_nbh_vertex_fwd_iterator< G >::vertex_nbh_vertex_fwd_iterator | ( | const C & | c | ) | [inline] |
const util::vertex< G > & mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::center | ( | ) | const [inherited] |
The psite around which this iterator moves.
void mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::center_at | ( | const p_indexed_psite< S > & | c | ) | [inherited] |
Make c
the center of this iterator.
void mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::center_at | ( | const C2 & | c | ) | [inherited] |
void mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::change_target | ( | const G & | g | ) | [inherited] |
Change the graph targeted by this iterator.
const util::vertex< G > & mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::element | ( | ) | const [inherited] |
Return the underlying element.
const util::vertex< G > & mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::elt_hook_ | ( | ) | const [inherited] |
Hook to the current location.
util::vertex< G > ::id_t mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::id | ( | ) | const [inherited] |
Returns the element ID.
unsigned mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::index | ( | ) | const [inherited] |
Return current index.
(The current element is the i-th neighbor)
void mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::invalidate | ( | ) | [inherited] |
Invalidate the iterator.
bool mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::is_valid | ( | ) | const [inherited] |
Iterator interface.
Test if the iterator is valid.
bool mln::internal::vertex_nbh_vertex_fwd_iterator< G >::is_valid_ | ( | ) | const [inline, protected] |
void mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::next | ( | ) | [inherited] |
Go to the next value.
unsigned mln::internal::vertex_nbh_vertex_fwd_iterator< G >::next_id_ | ( | ) | const [inline, protected] |
Go to the next value.
mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::operator typename util::vertex< G > ::id_t | ( | ) | const [inherited] |
Conversion operator. Returns the element id.
mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::operator typename util::vertex< G > ::id_value_t | ( | ) | const [inherited] |
Conversion operator.
Returns the element id. FIXME: May cause ambiguities.
void mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::start | ( | ) | [inherited] |
Start an iteration.
unsigned mln::internal::vertex_nbh_vertex_fwd_iterator< G >::start_id_ | ( | ) | const [inline, protected] |
Start an iteration.
const util::vertex< G > & mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::subj_ | ( | ) | [inherited] |
Proxy.
Proxy subject
void mln::internal::vertex_nbh_vertex_fwd_iterator< G >::update_ | ( | ) | [inline, protected] |
friend class nbh_iterator_base< G, V, V, self_ > [friend] |
const util::vertex< G > * mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::c_ [protected, inherited] |
util::vertex< G > mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::elt_ [protected, inherited] |
unsigned mln::internal::nbh_iterator_base< G, util::vertex< G > , util::vertex< G > , vertex_nbh_vertex_fwd_iterator< G > >::i_ [protected, inherited] |