#include <mixed_neighb.hh>
Public Types | |
typedef Site_Proxy< void > | category |
typedef E | exact_t |
typedef N::site | site |
The associated site type (as a Site_Proxy). | |
typedef N | target |
The associated target type. | |
Public Member Functions | |
const N::psite & | center () const |
The psite around which this iterator moves. | |
void | center_at (const P &c) |
void | change_target (const N &s) |
Change the site set targeted by this iterator. | |
W::psite | compute_p_ () const |
Compute the current psite. | |
void | do_next_ () |
Go to the next point. | |
void | do_start_ () |
Start an iteration. | |
void | invalidate () |
void | invalidate_ () |
Invalidate the iterator. | |
bool | is_valid () const |
bool | is_valid_ () const |
Test the iterator validity. | |
template<typename P> | |
mixed_neighb_fwd_niter (const mixed_neighb< W > &nbh, const mln_target(W)&nbh_site_set, const P &c) | |
mixed_neighb_fwd_niter () | |
void | next () |
Go to the next element. | |
void | next_ () |
Go to the next point. | |
const N::psite & | p_hook_ () const |
Hook to the current location. | |
const N & | site_set () const |
Give the site set (neighborhood or window) that this iterator browses. | |
void | start () |
void | start_ () |
Start an iteration. | |
const N::psite & | subj_ () |
This overriding is very useful: it adds a test to prevent getting an invalid iterator when its center has moved. | |
const N *& | target_ () |
Give the target address. It might be 0. | |
const N::site & | to_site () const |
Return the site it points to (as a Site_Proxy). | |
E & | update () |
Warning: this method is an advanced tool provided for very special occasions; if you are a regular user, you should never use it! Calling this method forces this relative iterator to synchronize with its center when it has just moved and when the relative iterator still makes sense. | |
Protected Attributes | |
const N::psite * | c_ |
A pointer to the center psite around which this iterator moves. | |
I | i_ |
const N * | s_ |
The target. | |
Private Types | |
typedef internal::neighb_niter_base< W, mixed_neighb< W >, typename W::fwd_qiter, neighb_fwd_niter < W > > | super_ |
Definition at line 109 of file mixed_neighb.hh.
typedef Site_Proxy<void> mln::Site_Proxy< E >::category [inherited] |
Reimplemented from mln::Proxy< E >.
Reimplemented in mln::Pseudo_Site< E >, mln::Pseudo_Site< mln::p_run_psite< P > >, mln::Pseudo_Site< mln::p_indexed_psite< S > >, mln::Pseudo_Site< mln::p_vertices_psite< G, F > >, mln::Pseudo_Site< mln::faces_psite< N, D, P > >, mln::Pseudo_Site< mln::complex_psite< D, G > >, mln::Pseudo_Site< mln::p_double_psite< S, Sp > >, and mln::Pseudo_Site< mln::p_edges_psite< G, F > >.
Definition at line 63 of file site_proxy.hh.
typedef E mln::Object< E >::exact_t [inherited] |
typedef N ::site mln::internal::site_iterator_base< N , E >::site [inherited] |
typedef internal::neighb_niter_base<W,mixed_neighb<W>, typename W ::fwd_qiter,neighb_fwd_niter<W> > mln::mixed_neighb_fwd_niter< W >::super_ [private] |
Reimplemented from mln::internal::site_iterator_base< N, E >.
Definition at line 115 of file mixed_neighb.hh.
typedef N mln::internal::site_iterator_base< N , E >::target [inherited] |
mln::mixed_neighb_fwd_niter< W >::mixed_neighb_fwd_niter | ( | ) | [inline] |
Definition at line 203 of file mixed_neighb.hh.
mln::mixed_neighb_fwd_niter< W >::mixed_neighb_fwd_niter | ( | const mixed_neighb< W > & | nbh, | |
const mln_target(W)& | nbh_site_set, | |||
const P & | c | |||
) | [inline] |
Definition at line 210 of file mixed_neighb.hh.
References mln::internal::neighb_niter_base< W, N, I, E >::i_, and mln::internal::neighb_base< W, E >::win().
const N::psite & mln::internal::site_relative_iterator_base< N , E , N::psite >::center | ( | ) | const [inherited] |
The psite around which this iterator moves.
void mln::internal::site_relative_iterator_base< N , E , N::psite >::center_at | ( | const P & | c | ) | [inline, inherited] |
void mln::internal::site_relative_iterator_base< N , E , N::psite >::change_target | ( | const N & | s | ) | [inherited] |
Change the site set targeted by this iterator.
Referenced by mln::internal::neighb_niter_base< W, N, I, E >::neighb_niter_base().
W::psite mln::internal::neighb_niter_base< W, N, I, E >::compute_p_ | ( | ) | const [inline, inherited] |
Compute the current psite.
Definition at line 137 of file neighb_niter_base.hh.
References mln::internal::neighb_niter_base< W, N, I, E >::i_.
void mln::internal::neighb_niter_base< W, N, I, E >::do_next_ | ( | ) | [inline, inherited] |
Go to the next point.
Definition at line 129 of file neighb_niter_base.hh.
References mln::internal::neighb_niter_base< W, N, I, E >::i_.
void mln::internal::neighb_niter_base< W, N, I, E >::do_start_ | ( | ) | [inline, inherited] |
Start an iteration.
Definition at line 121 of file neighb_niter_base.hh.
References mln::internal::neighb_niter_base< W, N, I, E >::i_.
void mln::Site_Iterator< E >::invalidate | ( | ) | [inline, inherited] |
Definition at line 112 of file site_iterator.hh.
References mln::exact(), and mln::Site_Iterator< E >::is_valid().
Referenced by mln::internal::site_relative_iterator_base< S, E, C >::center_at(), mln::internal::site_set_iterator_base< S, E >::change_target(), mln::internal::site_relative_iterator_base< S, E, C >::change_target(), mln::internal::piter_adaptor_< Pi, S, E >::change_target(), mln::p_transformed_piter< Pi, S, F >::change_target(), and mln::morpho::tree::depth1st_piter< T >::start_().
void mln::internal::neighb_niter_base< W, N, I, E >::invalidate_ | ( | ) | [inline, inherited] |
Invalidate the iterator.
Definition at line 113 of file neighb_niter_base.hh.
References mln::internal::neighb_niter_base< W, N, I, E >::i_.
bool mln::Site_Iterator< E >::is_valid | ( | ) | const [inline, inherited] |
Definition at line 101 of file site_iterator.hh.
References mln::exact().
Referenced by mln::graph_window_piter< S, W, I >::init_(), mln::graph_window_if_piter< S, W, I >::init_(), mln::complex_window_bkd_piter< I, G, W >::init_(), mln::complex_window_fwd_piter< I, G, W >::init_(), mln::complex_neighborhood_bkd_piter< I, G, N >::init_(), mln::complex_neighborhood_fwd_piter< I, G, N >::init_(), mln::Site_Iterator< E >::invalidate(), mln::Site_Iterator< E >::next(), mln::internal::site_relative_iterator_base< S, E, C >::next_(), mln::p_graph_piter< S, I >::next_(), mln::internal::p_complex_piter_base_< I, S, P, E >::next_(), mln::morpho::tree::depth1st_piter< T >::next_(), mln::internal::p_complex_piter_base_< I, S, P, E >::p_complex_piter_base_(), mln::p_graph_piter< S, I >::p_graph_piter(), mln::internal::site_relative_iterator_base< S, E, C >::start_(), mln::p_graph_piter< S, I >::start_(), mln::internal::p_complex_piter_base_< I, S, P, E >::start_(), mln::internal::site_relative_iterator_base< S, E, C >::update(), mln::p_graph_piter< S, I >::update_(), and mln::internal::p_complex_piter_base_< I, S, P, E >::update_().
bool mln::internal::neighb_niter_base< W, N, I, E >::is_valid_ | ( | ) | const [inline, inherited] |
Test the iterator validity.
Definition at line 105 of file neighb_niter_base.hh.
References mln::internal::neighb_niter_base< W, N, I, E >::i_.
void mln::Site_Iterator< E >::next | ( | ) | [inline, inherited] |
Go to the next element.
Definition at line 92 of file site_iterator.hh.
References mln::exact(), and mln::Site_Iterator< E >::is_valid().
Referenced by mln::morpho::tree::depth1st_piter< T >::start_().
void mln::internal::site_relative_iterator_base< N , E , N::psite >::next_ | ( | ) | [inherited] |
Go to the next point.
const N ::psite& mln::internal::site_relative_iterator_base< N , E , N::psite >::p_hook_ | ( | ) | const [inherited] |
Hook to the current location.
const N & mln::internal::site_relative_iterator_base< N , E , N::psite >::site_set | ( | ) | const [inherited] |
Give the site set (neighborhood or window) that this iterator browses.
void mln::Site_Iterator< E >::start | ( | ) | [inline, inherited] |
Reimplemented in mln::hexa_fwd_piter_< S >.
Definition at line 123 of file site_iterator.hh.
References mln::exact().
void mln::internal::site_relative_iterator_base< N , E , N::psite >::start_ | ( | ) | [inherited] |
Start an iteration.
const N ::psite& mln::internal::site_relative_iterator_base< N , E , N::psite >::subj_ | ( | ) | [inherited] |
This overriding is very useful: it adds a test to prevent getting an invalid iterator when its center has moved.
Some sub-classes provide an update() method for the client to say that she really want to read the iterator just after the center has changed.
Reimplemented from mln::internal::site_iterator_base< N, E >.
const N *& mln::internal::site_iterator_base< N , E >::target_ | ( | ) | [inherited] |
Give the target address. It might be 0.
const N ::site& mln::internal::site_iterator_base< N , E >::to_site | ( | ) | const [inherited] |
Return the site it points to (as a Site_Proxy).
E & mln::internal::site_relative_iterator_base< N , E , N::psite >::update | ( | ) | [inherited] |
Warning: this method is an advanced tool provided for very special occasions; if you are a regular user, you should never use it! Calling this method forces this relative iterator to synchronize with its center when it has just moved and when the relative iterator still makes sense.
const N::psite * mln::internal::site_relative_iterator_base< N , E , N::psite >::c_ [protected, inherited] |
A pointer to the center psite around which this iterator moves.
Definition at line 108 of file site_relative_iterator_base.hh.
I mln::internal::neighb_niter_base< W, N, I, E >::i_ [protected, inherited] |
Definition at line 76 of file neighb_niter_base.hh.
Referenced by mln::internal::neighb_niter_base< W, N, I, E >::compute_p_(), mln::internal::neighb_niter_base< W, N, I, E >::do_next_(), mln::internal::neighb_niter_base< W, N, I, E >::do_start_(), mln::internal::neighb_niter_base< W, N, I, E >::invalidate_(), mln::internal::neighb_niter_base< W, N, I, E >::is_valid_(), mln::mixed_neighb_bkd_niter< W >::mixed_neighb_bkd_niter(), mln::mixed_neighb_fwd_niter< W >::mixed_neighb_fwd_niter(), mln::neighb_bkd_niter< W >::neighb_bkd_niter(), and mln::neighb_fwd_niter< W >::neighb_fwd_niter().
const N * mln::internal::site_iterator_base< N , E >::s_ [protected, inherited] |