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

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

Public Member Functions

 p_set_of ()
q_box bbox () const
void clear ()
bool has (const psite &p) const
void insert (const S &s)
bool is_empty () const
bool is_valid () const
std::size_t memory_size () const
unsigned nelements () const
const S & operator[] (unsigned i) const
const util::set< S > & set_hook_ () const

Protected Member Functions

void update_bbox_ (const typename S::site &p)
void update_bbox_ (const Site_Set< S > &s)
void update_nsites_ (const T &)

Protected Attributes

accu::shape::bbox< typename
S::site > 
bb_
util::set< S > s_

Public Types

typedef p_double_piter< self_,
mln_bkd_eiter(set_), typename
S::bkd_piter > 
bkd_piter
typedef Site_Set< void > category
typedef S element
typedef p_set_of< S > exact_t
typedef p_double_piter< self_,
mln_fwd_eiter(set_), typename
S::fwd_piter > 
fwd_piter
typedef S i_element
typedef fwd_piter piter
typedef p_double_psite< self_,
element
psite
typedef const mln::box
< typename S::site > & 
q_box
typedef subject< S::site >::ret site

Related Functions

(Note that these are not member functions.)

template<typename S >
std::ostream & operator<< (std::ostream &ostr, const p_set_of< S > &s)

Detailed Description

template<typename S>
class mln::p_set_of< S >

p_set_of is a set of site sets.

Parameter S is the type of the contained site sets.

Definition at line 72 of file p_set_of.hh.

Constructor & Destructor Documentation

template<typename S>
mln::p_set_of< S >::p_set_of ( )

Constructor without arguments.

Member Function Documentation

q_box mln::internal::site_set_impl__bbox< mln_trait_site_set_bbox(S) , S >::bbox ( ) const
inherited
template<typename S>
void mln::p_set_of< S >::clear ( )

Clear this set.

template<typename S>
bool mln::p_set_of< S >::has ( const psite p) const

Test if p belongs to this point set.

template<typename S>
void mln::p_set_of< S >::insert ( const S &  s)

Insert a site set s.

bool mln::internal::site_set_base_< S::site , p_set_of< S > >::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 S>
bool mln::p_set_of< S >::is_valid ( ) const

Test if this set of runs is valid.

template<typename S>
std::size_t mln::p_set_of< S >::memory_size ( ) const

Return the size of this site set in memory.

template<typename S>
unsigned mln::p_set_of< S >::nelements ( ) const

Give the number of elements (site sets) of this composite.

template<typename S>
const S& mln::p_set_of< S >::operator[] ( unsigned  i) const

Return the i-th site set.

template<typename S>
const util::set<S>& mln::p_set_of< S >::set_hook_ ( ) const

Hook to the set of runs.

void mln::internal::site_set_impl__bbox< mln_trait_site_set_bbox(S) , S >::update_bbox_ ( const typename S ::site p)
protectedinherited
void mln::internal::site_set_impl__bbox< mln_trait_site_set_bbox(S) , S >::update_bbox_ ( const Site_Set< S > &  s)
protectedinherited
void mln::internal::site_set_impl__nsites< mln_trait_site_set_nsites(S) , S >::update_nsites_ ( const T )
protectedinherited

Friends And Related Function Documentation

template<typename S >
std::ostream & operator<< ( std::ostream &  ostr,
const p_set_of< S > &  s 
)
related

Member Data Documentation

accu::shape::bbox<typename S ::site> mln::internal::site_set_impl__bbox< mln_trait_site_set_bbox(S) , S >::bb_
protectedinherited

Definition at line 87 of file site_set_impl.hh.

template<typename S>
util::set<S> mln::p_set_of< S >::s_
protected

Set of site sets.

Definition at line 148 of file p_set_of.hh.

Member Typedef Documentation

template<typename S>
typedef p_double_piter<self_, mln_bkd_eiter(set_), typename S ::bkd_piter> mln::p_set_of< S >::bkd_piter

Backward Site_Iterator associated type.

Definition at line 96 of file p_set_of.hh.

typedef Site_Set<void> mln::Site_Set< p_set_of< S > >::category
inherited

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

template<typename S>
typedef S mln::p_set_of< S >::element

Element associated type.

Definition at line 82 of file p_set_of.hh.

typedef p_set_of< S > mln::Object< p_set_of< S > >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename S>
typedef p_double_piter<self_, mln_fwd_eiter(set_), typename S ::fwd_piter> mln::p_set_of< S >::fwd_piter

Forward Site_Iterator associated type.

Definition at line 91 of file p_set_of.hh.

template<typename S>
typedef S mln::p_set_of< S >::i_element

Insertion element associated type.

Definition at line 114 of file p_set_of.hh.

template<typename S>
typedef fwd_piter mln::p_set_of< S >::piter

Site_Iterator associated type.

Definition at line 99 of file p_set_of.hh.

template<typename S>
typedef p_double_psite<self_, element> mln::p_set_of< S >::psite

Psite associated type.

Definition at line 86 of file p_set_of.hh.

typedef const mln::box<typename S ::site>& mln::internal::site_set_impl__bbox< mln_trait_site_set_bbox(S) , S >::q_box
inherited

Definition at line 79 of file site_set_impl.hh.

typedef subject<S::site >::ret mln::internal::site_set_base_< S::site , p_set_of< S > >::site
inherited

Site associated type.

Definition at line 58 of file site_set_base.hh.