$extrastylesheet
#include <apps/bench/static_window.hh>
Public Member Functions | |
static_window (const mln::util::static_array< D, n > &dps) | |
unsigned | delta () const |
const D & | dp (unsigned i) const |
const mln::util::static_array < D, n > & | dps_hook_ () const |
bool | has (const D &dp) const |
bool | is_centered () const |
bool | is_empty () const |
bool | is_symmetric () const |
bool | is_valid () const |
void | print (std::ostream &ostr) const |
unsigned | size () const |
void | sym () |
Public Types | |
enum | { length = n } |
typedef dpsites_bkd_piter < static_window< D, n > > | bkd_qiter |
typedef Window< void > | category |
typedef psite | center_t |
typedef D | dpsite |
typedef static_window< D, n > | exact_t |
typedef dpsites_fwd_piter < static_window< D, n > > | fwd_qiter |
typedef D::psite | psite |
typedef fwd_qiter | qiter |
typedef static_window< D, n > | regular |
typedef D::site | site |
Generic window class.
This type of window is just like a set of delta-points. The parameter is D
, type of delta-point.
Definition at line 89 of file static_window.hh.
mln::static_window< D, n >::static_window | ( | const mln::util::static_array< D, n > & | dps | ) |
unsigned mln::static_window< D, n >::delta | ( | ) | const |
Give the maximum coordinate gap between the window center and a window point.
const D& mln::static_window< D, n >::dp | ( | unsigned | i | ) | const |
Give the i-th
delta-point.
const mln::util::static_array<D, n>& mln::static_window< D, n >::dps_hook_ | ( | ) | const |
Hook to the set of D.
bool mln::static_window< D, n >::has | ( | const D & | dp | ) | const |
Test if dp
is in this window definition.
bool mln::static_window< D, n >::is_centered | ( | ) | const |
Test if the window is centered.
bool mln::static_window< D, n >::is_empty | ( | ) | const |
Test if the window is empty (null size; no delta-point).
bool mln::static_window< D, n >::is_symmetric | ( | ) | const |
Test if the window is symmetric.
\return True if for every dp of this window, -dp is also in this window.
|
inherited |
return true by default.
void mln::static_window< D, n >::print | ( | std::ostream & | ostr | ) | const |
Print the window definition into ostr
.
unsigned mln::static_window< D, n >::size | ( | ) | const |
Give the window size, i.e., the number of delta-sites.
void mln::static_window< D, n >::sym | ( | ) |
Apply a central symmetry to the target window.
typedef dpsites_bkd_piter< static_window<D, n> > mln::static_window< D, n >::bkd_qiter |
Site_Iterator type to browse the points of a basic window w.r.t. the reverse ordering of delta-points.
Definition at line 126 of file static_window.hh.
|
inherited |
Definition at line 95 of file concept/window.hh.
|
inherited |
Type of the window center.
Definition at line 64 of file window_base.hh.
|
inherited |
DPsite associated type.
Definition at line 55 of file window_base.hh.
|
inherited |
typedef dpsites_fwd_piter< static_window<D, n> > mln::static_window< D, n >::fwd_qiter |
Site_Iterator type to browse the points of a basic window w.r.t. the ordering of delta-points.
Definition at line 121 of file static_window.hh.
|
inherited |
Psite associated type.
Definition at line 58 of file window_base.hh.
typedef fwd_qiter mln::static_window< D, n >::qiter |
Site_Iterator type to browse the points of a basic window whatever the ordering of delta-points.
Definition at line 131 of file static_window.hh.
typedef static_window<D, n> mln::static_window< D, n >::regular |
Regular window associated type.
Definition at line 96 of file static_window.hh.
|
inherited |
Site associated type.
Definition at line 61 of file window_base.hh.
anonymous enum |
Definition at line 93 of file static_window.hh.