|
Milena (Olena)
User documentation 2.0a Id
|
Generic window class. More...
#include <window.hh>
Inherits mln::internal::window_base< D, window< D > >.
Public Types | |
| typedef dpsites_bkd_piter < window< D > > | bkd_qiter |
| Site_Iterator type to browse the points of a basic window w.r.t. the reverse ordering of delta-points. | |
| typedef dpsites_fwd_piter < window< D > > | fwd_qiter |
| Site_Iterator type to browse the points of a basic window w.r.t. the ordering of delta-points. | |
| typedef fwd_qiter | qiter |
| Site_Iterator type to browse the points of a basic window whatever the ordering of delta-points. | |
| typedef window< D > | regular |
| Regular window associated type. | |
Public Member Functions | |
| void | clear () |
| Clear the window. | |
| unsigned | delta () const |
| Give the maximum coordinate gap between the window center and a window point. | |
| const D & | dp (unsigned i) const |
Give the i-th delta-point. | |
| bool | has (const D &dp) const |
Test if dp is in this window definition. | |
| window< D > & | insert (const D &dp) |
Insert a delta-point dp. | |
| template<typename W > | |
| window< D > & | insert (const Window< W > &win) |
Insert another window win. | |
| bool | is_centered () const |
| Test if the window is centered. | |
| bool | is_empty () const |
| Test if the window is empty (null size; no delta-point). | |
| bool | is_symmetric () const |
| void | print (std::ostream &ostr) const |
Print the window definition into ostr. | |
| unsigned | size () const |
| Give the window size, i.e., the number of delta-sites. | |
| const std::vector< D > & | std_vector () const |
| Give the std vector of delta-points. | |
| void | sym () |
| Apply a central symmetry to the target window. | |
| window () | |
| Constructor without argument. | |
| window< D > & | insert (const typename D::coord &dind) |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename D > | |
| bool | operator== (const window< D > &lhs, const window< D > &rhs) |
Equality comparison between windows lhs and rhs. | |
Generic window class.
This type of window is just like a set of delta-points. The parameter is D, type of delta-point.
| typedef dpsites_bkd_piter< window<D> > mln::window< D >::bkd_qiter |
Site_Iterator type to browse the points of a basic window w.r.t. the reverse ordering of delta-points.
| typedef dpsites_fwd_piter< window<D> > mln::window< D >::fwd_qiter |
Site_Iterator type to browse the points of a basic window w.r.t. the ordering of delta-points.
| typedef fwd_qiter mln::window< D >::qiter |
Site_Iterator type to browse the points of a basic window whatever the ordering of delta-points.
| typedef window<D> mln::window< D >::regular |
|
inline |
|
inline |
|
inline |
|
inline |
Insert a delta-point dp.
Definition at line 327 of file window.hh.
Referenced by mln::c18(), mln::c26(), mln::c2_3d_sli(), mln::c4_3d(), mln::c6(), mln::morpho::line_gradient(), mln::window< D >::sym(), mln::convert::to_upper_window(), mln::convert::to_window(), mln::win_c4p(), mln::win_c4p_3d(), mln::win_c8p(), and mln::win_c8p_3d().
|
inline |
Test if the window is centered.
Definition at line 226 of file window.hh.
References mln::literal::zero.
|
inline |
|
inline |
Test if the window is symmetric.
\return True if for every dp of this window, -dp is also in this window.
Definition at line 216 of file window.hh.
References mln::window< D >::sym().
|
inline |
|
inline |
Give the window size, i.e., the number of delta-sites.
Definition at line 294 of file window.hh.
Referenced by mln::win_c4p(), mln::win_c4p_3d(), mln::win_c8p(), and mln::win_c8p_3d().
|
inline |
|
inline |
Apply a central symmetry to the target window.
Definition at line 234 of file window.hh.
References mln::window< D >::insert().
Referenced by mln::window< D >::is_symmetric().