Base class for neighborhood implementation classes. More...
#include <neighborhood_base.hh>
Public Types | |
typedef Neighborhood< void > | category |
typedef W::dpsite | dpsite |
Dpsite associated type. | |
typedef E | exact_t |
typedef W::psite | psite |
Psite associated type. | |
typedef W::site | site |
Site associated type. | |
typedef W | window |
Window associated type. | |
Public Member Functions | |
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. | |
bool | is_valid () const |
Return true by default. | |
unsigned | size () const |
Give the neighborhood size, i.e., the number of elements it contains. | |
Protected Member Functions | |
neighborhood_base () |
Base class for neighborhood implementation classes.
W
is the underlying window type.
typedef Neighborhood<void> mln::Neighborhood< E >::category [inherited] |
Reimplemented from mln::Object< E >.
typedef W ::dpsite mln::internal::neighborhood_base< W, E >::dpsite |
Dpsite associated type.
typedef E mln::Object< E >::exact_t [inherited] |
typedef W ::psite mln::internal::neighborhood_base< W, E >::psite |
Psite associated type.
typedef W ::site mln::internal::neighborhood_base< W, E >::site |
Site associated type.
typedef W mln::internal::neighborhood_base< W, E >::window |
Window associated type.
mln::internal::neighborhood_base< W, E >::neighborhood_base | ( | ) | [inline, protected] |
unsigned mln::internal::neighborhood_impl< W, E >::delta | ( | ) | const [inline, inherited] |
Give the maximum coordinate gap between the neighborhood center and a neighboring point.
References mln::exact().
const W::dpsite & mln::internal::neighborhood_impl< W, E >::dp | ( | unsigned | i | ) | const [inline, inherited] |
Give the maximum coordinate gap between the neighborhood center and a neighboring point.
References mln::exact().
bool mln::internal::neighborhood_base< W, E >::is_valid | ( | ) | const [inline] |
Return true by default.
unsigned mln::internal::neighborhood_impl< W, E >::size | ( | ) | const [inline, inherited] |
Give the neighborhood size, i.e., the number of elements it contains.
References mln::exact().
Referenced by mln::c18(), mln::c2(), mln::c26(), mln::c2_col(), mln::c2_row(), mln::c4(), mln::c4_3d(), mln::c6(), mln::c8(), and mln::c8_3d().