Adapter class from window to neighborhood. More...
#include <neighb.hh>

Public Types | |
| typedef neighb_bkd_niter< W > | bkd_niter |
| Backward site iterator associated type. | |
| typedef Neighborhood< void > | category |
| typedef W::dpsite | dpsite |
| Dpsite associated type. | |
| typedef neighb< W > | exact_t |
| typedef neighb_fwd_niter< W > | fwd_niter |
| Forward site iterator associated type. | |
| typedef fwd_niter | niter |
| Site iterator associated type. | |
| typedef W::psite | psite |
| Psite associated type. | |
| typedef W::site | site |
| Site associated type. | |
| typedef W | window |
| Window associated type. | |
Public Member Functions | |
| void | change_window (const W &new_win) |
| Change the corresponding window. | |
| unsigned | delta () const |
| Give the maximum coordinate gap between the neighborhood center and a neighboring point. | |
| const W::dpsite & | dp (unsigned i) const |
| Give the maximum coordinate gap between the neighborhood center and a neighboring point. | |
| W & | hook_win_ () |
| bool | is_valid () const |
| Return true by default. | |
| neighb () | |
| Constructor without argument. | |
| neighb (const W &win) | |
Constructor from a window win. | |
| unsigned | size () const |
| Give the neighborhood size, i.e., the number of elements it contains. | |
| const W & | win () const |
| Get the corresponding window. | |
Private Attributes | |
| W | win_ |
Adapter class from window to neighborhood.
| typedef neighb_bkd_niter<W> mln::neighb< W >::bkd_niter |
Backward site iterator associated type.
typedef Neighborhood<void> mln::Neighborhood< neighb< W > >::category [inherited] |
Reimplemented from mln::Object< neighb< W > >.
typedef W ::dpsite mln::internal::neighborhood_base< W, neighb< W > >::dpsite [inherited] |
Dpsite associated type.
typedef neighb< W > mln::Object< neighb< W > >::exact_t [inherited] |
| typedef neighb_fwd_niter<W> mln::neighb< W >::fwd_niter |
Forward site iterator associated type.
| typedef fwd_niter mln::neighb< W >::niter |
Site iterator associated type.
typedef W ::psite mln::internal::neighborhood_base< W, neighb< W > >::psite [inherited] |
Psite associated type.
typedef W ::site mln::internal::neighborhood_base< W, neighb< W > >::site [inherited] |
Site associated type.
typedef W mln::internal::neighborhood_base< W, neighb< W > >::window [inherited] |
Window associated type.
| mln::neighb< W >::neighb | ( | ) | [inline] |
Constructor without argument.
| mln::neighb< W >::neighb | ( | const W & | win | ) | [inline] |
Constructor from a window win.
References mln::neighb< W >::change_window().
| void mln::neighb< W >::change_window | ( | const W & | new_win | ) | [inline] |
Change the corresponding window.
References mln::neighb< W >::win_.
Referenced by mln::convert::over_load::from_to_(), and mln::neighb< W >::neighb().
| unsigned mln::internal::neighborhood_impl< W, neighb< W > >::delta | ( | ) | const [inherited] |
Give the maximum coordinate gap between the neighborhood center and a neighboring point.
| const W ::dpsite& mln::internal::neighborhood_impl< W, neighb< W > >::dp | ( | unsigned | i | ) | const [inherited] |
Give the maximum coordinate gap between the neighborhood center and a neighboring point.
| W & mln::neighb< W >::hook_win_ | ( | ) | [inline] |
For internal use only.
Hook to the window.
References mln::neighb< W >::win_.
Referenced by mln::c18(), mln::c2(), mln::c26(), mln::c4_3d(), mln::c6(), and mln::convert::over_load::from_to_().
| bool mln::internal::neighborhood_base< W, neighb< W > >::is_valid | ( | ) | const [inherited] |
Return true by default.
| unsigned mln::internal::neighborhood_impl< W, neighb< W > >::size | ( | ) | const [inherited] |
Give the neighborhood size, i.e., the number of elements it contains.
| const W & mln::neighb< W >::win | ( | ) | const [inline] |
Get the corresponding window.
References mln::neighb< W >::win_.
Referenced by mln::convert::over_load::from_to_(), mln::neighb_bkd_niter< W >::neighb_bkd_niter(), and mln::neighb_fwd_niter< W >::neighb_fwd_niter().
W mln::neighb< W >::win_ [private] |
Referenced by mln::neighb< W >::change_window(), mln::neighb< W >::hook_win_(), and mln::neighb< W >::win().
1.7.1