Public Types | Public Member Functions | Protected Member Functions

mln::internal::neighborhood_base< W, E > Struct Template Reference

Base class for neighborhood implementation classes. More...

#include <neighborhood_base.hh>

Inheritance diagram for mln::internal::neighborhood_base< W, E >:
Inheritance graph

List of all members.

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 ()

Detailed Description

template<typename W, typename E>
struct mln::internal::neighborhood_base< W, E >

Base class for neighborhood implementation classes.

W is the underlying window type.

Definition at line 119 of file neighborhood_base.hh.


Member Typedef Documentation

template<typename E>
typedef Neighborhood<void> mln::Neighborhood< E >::category [inherited]

Reimplemented from mln::Object< E >.

Definition at line 68 of file core/concept/neighborhood.hh.

template<typename W, typename E>
typedef W ::dpsite mln::internal::neighborhood_base< W, E >::dpsite

Dpsite associated type.

Definition at line 125 of file neighborhood_base.hh.

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 173 of file object.hh.

template<typename W, typename E>
typedef W ::psite mln::internal::neighborhood_base< W, E >::psite

Psite associated type.

Definition at line 128 of file neighborhood_base.hh.

template<typename W, typename E>
typedef W ::site mln::internal::neighborhood_base< W, E >::site

Site associated type.

Definition at line 131 of file neighborhood_base.hh.

template<typename W, typename E>
typedef W mln::internal::neighborhood_base< W, E >::window

Window associated type.

Definition at line 122 of file neighborhood_base.hh.


Constructor & Destructor Documentation

template<typename W , typename E >
mln::internal::neighborhood_base< W, E >::neighborhood_base (  )  [inline, protected]

Definition at line 150 of file neighborhood_base.hh.


Member Function Documentation

template<typename W , typename E >
unsigned mln::internal::neighborhood_impl< W, E >::delta (  )  const [inline, inherited]

Give the maximum coordinate gap between the neighborhood center and a neighboring point.

Definition at line 177 of file neighborhood_base.hh.

References mln::exact().

template<typename W , typename E >
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.

Definition at line 189 of file neighborhood_base.hh.

References mln::exact().

template<typename W , typename E >
bool mln::internal::neighborhood_base< W, E >::is_valid (  )  const [inline]

Return true by default.

Definition at line 157 of file neighborhood_base.hh.

template<typename W , typename E >
unsigned mln::internal::neighborhood_impl< W, E >::size (  )  const [inline, inherited]

Give the neighborhood size, i.e., the number of elements it contains.

Definition at line 167 of file neighborhood_base.hh.

References mln::exact().

Referenced by mln::c18(), mln::c2(), mln::c26(), mln::c2_3d_sli(), mln::c2_col(), mln::c2_row(), mln::c4(), mln::c4_3d(), mln::c6(), mln::c8(), mln::c8_3d(), and mln::world::inter_pixel::v2v().