$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::p_centered< W > Class Template Reference

#include <mln/core/site_set/p_centered.hh>

Public Member Functions

 p_centered ()
 p_centered (const W &win, const typename W::psite &c)
const W::psite & center () const
template<typename P >
bool has (const P &p) const
bool is_empty () const
bool is_valid () const
std::size_t memory_size () const
const W & window () const

Protected Attributes

W::psite c_
win_

Public Types

typedef p_centered_piter< W > bkd_piter
typedef Site_Set< void > category
typedef psite element
typedef p_centered< W > exact_t
typedef p_centered_piter< W > fwd_piter
typedef fwd_piter piter
typedef W::psite psite
typedef W::site site

Detailed Description

template<typename W>
class mln::p_centered< W >

Site set corresponding to a window centered on a site.

Definition at line 78 of file p_centered.hh.

Constructor & Destructor Documentation

template<typename W>
mln::p_centered< W >::p_centered ( )

Constructor without argument.

template<typename W>
mln::p_centered< W >::p_centered ( const W &  win,
const typename W::psite &  c 
)

Constructor from a window win and a center c.

Member Function Documentation

template<typename W>
const W ::psite& mln::p_centered< W >::center ( ) const

Give the center of this site set.

template<typename W>
template<typename P >
bool mln::p_centered< W >::has ( const P &  p) const

Test if p belongs to the box.

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.

template<typename W>
bool mln::p_centered< W >::is_valid ( ) const

Test if this site set is initialized.

template<typename W>
std::size_t mln::p_centered< W >::memory_size ( ) const

Return the size of this site set in memory.

template<typename W>
const W& mln::p_centered< W >::window ( ) const

Give the window this site set is defined upon.

Member Data Documentation

template<typename W>
W ::psite mln::p_centered< W >::c_
protected

Definition at line 130 of file p_centered.hh.

template<typename W>
W mln::p_centered< W >::win_
protected

Definition at line 129 of file p_centered.hh.

Member Typedef Documentation

template<typename W>
typedef p_centered_piter<W> mln::p_centered< W >::bkd_piter

Backward Site_Iterator associated type.

Definition at line 98 of file p_centered.hh.

typedef Site_Set<void> mln::Site_Set< p_centered< W > >::category
inherited

Definition at line 74 of file core/concept/site_set.hh.

template<typename W>
typedef psite mln::p_centered< W >::element

Element associated type.

Definition at line 91 of file p_centered.hh.

typedef p_centered< W > mln::Object< p_centered< W > >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename W>
typedef p_centered_piter<W> mln::p_centered< W >::fwd_piter

Forward Site_Iterator associated type.

Definition at line 95 of file p_centered.hh.

template<typename W>
typedef fwd_piter mln::p_centered< W >::piter

Site_Iterator associated type.

Definition at line 101 of file p_centered.hh.

template<typename W>
typedef W ::psite mln::p_centered< W >::psite

Psite associated type.

Definition at line 84 of file p_centered.hh.

template<typename W>
typedef W ::site mln::p_centered< W >::site

Site associated type.

Definition at line 87 of file p_centered.hh.