$extrastylesheet
#include <mln/core/image/graph_window_if_piter.hh>
Public Member Functions | |
const typename W::psite & | center () const |
void | center_at (const P &c) |
void | change_target (const W &s) |
template<typename Pref > | |
void | init_ (const Window< W > &win, const Pref &p_ref) |
void | invalidate () |
bool | is_masked (const typename S::graph_element ¢er, const typename S::graph_element &element) const |
bool | is_valid () const |
void | next () |
void | next_ () |
const W::psite & | p_hook_ () const |
const W & | site_set () const |
void | start () |
void | start_ () |
const W::psite & | subj_ () |
const W *& | target_ () |
const W::site & | to_site () const |
graph_window_if_piter< S, W, I > & | update () |
graph_window_if_piter () | |
template<typename Pref > | |
graph_window_if_piter (const Window< W > &win, const Pref &p_ref) | |
bool | is_valid_ () const |
void | invalidate_ () |
void | do_start_ () |
void | do_next_ () |
template<typename Pref > | |
void | center_at_ (const Pref &c) |
template<typename I2 > | |
void | center_at_ (const p_graph_piter< S, I2 > &c) |
W::psite | compute_p_ () const |
const S::graph_element & | element () const |
unsigned | id () const |
Protected Attributes | |
const typename W::psite * | c_ |
const W * | s_ |
Public Types | |
typedef Site_Proxy< void > | category |
typedef graph_window_if_piter < S, W, I > | exact_t |
typedef W::site | site |
typedef W | target |
typedef S::fun_t::result | P |
Forward iterator on line graph window.
Definition at line 51 of file graph_window_if_piter.hh.
mln::graph_window_if_piter< S, W, I >::graph_window_if_piter | ( | ) |
Construction.
mln::graph_window_if_piter< S, W, I >::graph_window_if_piter | ( | const Window< W > & | win, |
const Pref & | p_ref | ||
) |
|
inherited |
The psite around which this iterator moves.
|
inherited |
void mln::graph_window_if_piter< S, W, I >::center_at_ | ( | const Pref & | c | ) |
Do some work while setting the reference site.
void mln::graph_window_if_piter< S, W, I >::center_at_ | ( | const p_graph_piter< S, I2 > & | c | ) |
Do some work while setting the reference site.
|
inherited |
Change the site set targeted by this iterator.
W ::psite mln::graph_window_if_piter< S, W, I >::compute_p_ | ( | ) | const |
Compute the current psite.
void mln::graph_window_if_piter< S, W, I >::do_next_ | ( | ) |
Go to the next point.
void mln::graph_window_if_piter< S, W, I >::do_start_ | ( | ) |
Start an iteration.
const S ::graph_element& mln::graph_window_if_piter< S, W, I >::element | ( | ) | const |
Return the graph element pointed by this iterator.
unsigned mln::graph_window_if_piter< S, W, I >::id | ( | ) | const |
Return the graph element id.
FIXME: we do not want to have this member since there is an automatic conversion to the graph element. C++ does not seem to use this conversion operator.
void mln::graph_window_if_piter< S, W, I >::init_ | ( | const Window< W > & | win, |
const Pref & | p_ref | ||
) |
INTERNAL_API Delayed initialization.
|
inherited |
void mln::graph_window_if_piter< S, W, I >::invalidate_ | ( | ) |
Invalidate the iterator.
|
inherited |
Return wheter a graph element must be masked by this window.
|
inherited |
bool mln::graph_window_if_piter< S, W, I >::is_valid_ | ( | ) | const |
Manipulation.
Test if the iterator is valid.
|
inherited |
Go to the next element.
|
inherited |
Go to the next point.
|
inherited |
Hook to the current location.
|
inherited |
Give the site set (neighborhood or window) that this iterator browses.
|
inherited |
|
inherited |
INTERNAL_API Start an iteration.
|
inherited |
INTERNAL_API 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< W, graph_window_if_piter< S, W, I > >.
|
inherited |
Give the target address. It might be 0.
|
inherited |
Return the site it points to (as a Site_Proxy).
|
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.
|
protectedinherited |
A pointer to the center psite around which this iterator moves.
Definition at line 113 of file site_relative_iterator_base.hh.
|
protectedinherited |
The target.
Definition at line 91 of file site_iterator_base.hh.
|
inherited |
Definition at line 68 of file site_proxy.hh.
|
inherited |
typedef S::fun_t ::result mln::graph_window_if_piter< S, W, I >::P |
Associated types.
Definition at line 64 of file graph_window_if_piter.hh.
|
inherited |
The associated site type (as a Site_Proxy).
Definition at line 64 of file site_iterator_base.hh.
|
inherited |
The associated target type.
Definition at line 61 of file site_iterator_base.hh.