Site set corresponding to a window centered on a site. More...
#include <p_centered.hh>
Public Types | |
typedef p_centered_piter< W > | bkd_piter |
Backward Site_Iterator associated type. | |
typedef Site_Set< void > | category |
typedef psite | element |
Element associated type. | |
typedef p_centered< W > | exact_t |
typedef p_centered_piter< W > | fwd_piter |
Forward Site_Iterator associated type. | |
typedef fwd_piter | piter |
Site_Iterator associated type. | |
typedef W::psite | psite |
Psite associated type. | |
typedef subject< W::psite >::ret | site |
Site associated type. | |
typedef W::site | site |
Site associated type. | |
Public Member Functions | |
const W::psite & | center () const |
Give the center of this site set. | |
template<typename P > | |
bool | has (const P &p) const |
Test if p belongs to the box. | |
bool | is_empty () const |
Test if the site set is empty. | |
bool | is_valid () const |
Test if this site set is initialized. | |
std::size_t | memory_size () const |
Return the size of this site set in memory. | |
p_centered () | |
Constructor without argument. | |
p_centered (const W &win, const typename W::psite &c) | |
Constructor from a window win and a center c . | |
const W & | window () const |
Give the window this site set is defined upon. | |
Protected Attributes | |
W::psite | c_ |
W | win_ |
Site set corresponding to a window centered on a site.
typedef p_centered_piter<W> mln::p_centered< W >::bkd_piter |
Backward Site_Iterator associated type.
typedef Site_Set<void> mln::Site_Set< p_centered< W > >::category [inherited] |
Reimplemented from mln::Object< p_centered< W > >.
typedef psite mln::p_centered< W >::element |
Element associated type.
typedef p_centered< W > mln::Object< p_centered< W > >::exact_t [inherited] |
typedef p_centered_piter<W> mln::p_centered< W >::fwd_piter |
Forward Site_Iterator associated type.
typedef fwd_piter mln::p_centered< W >::piter |
Site_Iterator associated type.
typedef W ::psite mln::p_centered< W >::psite |
Psite associated type.
typedef subject<W::psite >::ret mln::internal::site_set_base_< W::psite , p_centered< W > >::site [inherited] |
Site associated type.
typedef W ::site mln::p_centered< W >::site |
Site associated type.
mln::p_centered< W >::p_centered | ( | ) | [inline] |
Constructor without argument.
mln::p_centered< W >::p_centered | ( | const W & | win, | |
const typename W::psite & | c | |||
) | [inline] |
Constructor from a window win
and a center c
.
References mln::p_centered< W >::is_valid().
const W::psite & mln::p_centered< W >::center | ( | ) | const [inline] |
Give the center of this site set.
Referenced by mln::p_centered_piter< W >::p_centered_piter().
bool mln::p_centered< W >::has | ( | const P & | p | ) | const [inline] |
Test if p
belongs to the box.
References mln::p_centered< W >::is_valid().
bool mln::internal::site_set_base_< W::psite , p_centered< W > >::is_empty | ( | ) | const [inherited] |
Test if the site set is empty.
This final method dispatches to is_empty_ whose default implementation relies on the 'nsites' method.
bool mln::p_centered< W >::is_valid | ( | ) | const [inline] |
Test if this site set is initialized.
Referenced by mln::p_centered< W >::has(), and mln::p_centered< W >::p_centered().
std::size_t mln::p_centered< W >::memory_size | ( | ) | const [inline] |
Return the size of this site set in memory.
const W & mln::p_centered< W >::window | ( | ) | const [inline] |
Give the window this site set is defined upon.
W ::psite mln::p_centered< W >::c_ [protected] |
W mln::p_centered< W >::win_ [protected] |