$extrastylesheet
#include <mln/util/internal/graph_nbh_iter_base.hh>
Public Member Functions | |
bool | is_valid () const |
void | invalidate () |
void | start () |
void | next () |
unsigned | index () const |
Elt::id_t | id () const |
operator typename Elt::id_t () const | |
operator typename Elt::id_value_t () const | |
const C & | center () const |
template<typename S > | |
void | center_at (const p_indexed_psite< S > &c) |
template<typename C2 > | |
void | center_at (const C2 &c) |
void | change_target (const G &g) |
const Elt & | element () const |
const Elt & | elt_hook_ () const |
const Elt & | subj_ () |
Protected Member Functions | |
nbh_iterator_base () | |
template<typename C2 > | |
nbh_iterator_base (const C2 &c) |
Protected Attributes | |
const C * | c_ |
Elt | elt_ |
unsigned | i_ |
Public Types | |
typedef Proxy< void > | category |
typedef E | exact_t |
Definition at line 45 of file graph_nbh_iter_base.hh.
|
protected |
Construction and assignment.
|
protected |
const C& mln::internal::nbh_iterator_base< G, C, Elt, E >::center | ( | ) | const |
The psite around which this iterator moves.
void mln::internal::nbh_iterator_base< G, C, Elt, E >::center_at | ( | const p_indexed_psite< S > & | c | ) |
Make c
the center of this iterator.
void mln::internal::nbh_iterator_base< G, C, Elt, E >::center_at | ( | const C2 & | c | ) |
void mln::internal::nbh_iterator_base< G, C, Elt, E >::change_target | ( | const G & | g | ) |
Change the graph targeted by this iterator.
const Elt& mln::internal::nbh_iterator_base< G, C, Elt, E >::element | ( | ) | const |
Return the underlying element.
const Elt& mln::internal::nbh_iterator_base< G, C, Elt, E >::elt_hook_ | ( | ) | const |
Hook to the current location.
Elt::id_t mln::internal::nbh_iterator_base< G, C, Elt, E >::id | ( | ) | const |
Returns the element ID.
unsigned mln::internal::nbh_iterator_base< G, C, Elt, E >::index | ( | ) | const |
Return current index.
(The current element is the i-th neighbor)
void mln::internal::nbh_iterator_base< G, C, Elt, E >::invalidate | ( | ) |
Invalidate the iterator.
bool mln::internal::nbh_iterator_base< G, C, Elt, E >::is_valid | ( | ) | const |
Iterator interface.
Test if the iterator is valid.
void mln::internal::nbh_iterator_base< G, C, Elt, E >::next | ( | ) |
Go to the next value.
mln::internal::nbh_iterator_base< G, C, Elt, E >::operator typename Elt::id_t | ( | ) | const |
Conversion operator. Returns the element id.
mln::internal::nbh_iterator_base< G, C, Elt, E >::operator typename Elt::id_value_t | ( | ) | const |
Conversion operator.
Returns the element id. FIXME: May cause ambiguities.
void mln::internal::nbh_iterator_base< G, C, Elt, E >::start | ( | ) |
Start an iteration.
const Elt& mln::internal::nbh_iterator_base< G, C, Elt, E >::subj_ | ( | ) |
|
protected |
Definition at line 113 of file graph_nbh_iter_base.hh.
|
protected |
Definition at line 114 of file graph_nbh_iter_base.hh.
|
protected |
Definition at line 115 of file graph_nbh_iter_base.hh.
|
inherited |
Definition at line 229 of file core/concept/proxy.hh.
|
inherited |