p_set_of is a set of site sets. More...
#include <p_set_of.hh>
Public Types | |
typedef p_double_piter< self_, mln_bkd_eiter(set_), typename S::bkd_piter > | bkd_piter |
Backward Site_Iterator associated type. | |
typedef Site_Set< void > | category |
typedef S | element |
Element associated type. | |
typedef p_set_of< S > | exact_t |
typedef p_double_piter< self_, mln_fwd_eiter(set_), typename S::fwd_piter > | fwd_piter |
Forward Site_Iterator associated type. | |
typedef S | i_element |
Insertion element associated type. | |
typedef fwd_piter | piter |
Site_Iterator associated type. | |
typedef p_double_psite< self_, element > | psite |
Psite associated type. | |
typedef subject< S::site >::ret | site |
Site associated type. | |
Public Member Functions | |
void | clear () |
Clear this set. | |
bool | has (const psite &p) const |
Test if p belongs to this point set. | |
void | insert (const S &s) |
Insert a site set s . | |
bool | is_empty () const |
Test if the site set is empty. | |
bool | is_valid () const |
Test if this set of runs is valid. | |
std::size_t | memory_size () const |
Return the size of this site set in memory. | |
unsigned | nelements () const |
Give the number of elements (site sets) of this composite. | |
const S & | operator[] (unsigned i) const |
Return the i-th site set. | |
p_set_of () | |
Constructor without arguments. | |
const util::set< S > & | set_1_ () const |
template<typename I > | |
const S & | set_2_ (const I &it) const |
const util::set< S > & | set_hook_ () const |
Hook to the set of runs. | |
Protected Member Functions | |
void | update_nsites_ (const T &) |
Protected Attributes | |
util::set< S > | s_ |
Set of site sets. | |
Private Types | |
typedef p_set_of< S > | self_ |
typedef util::set< S > | set_ |
p_set_of is a set of site sets.
Parameter S
is the type of the contained site sets.
Definition at line 71 of file p_set_of.hh.
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 95 of file p_set_of.hh.
typedef Site_Set<void> mln::Site_Set< p_set_of< S > >::category [inherited] |
Reimplemented from mln::Object< p_set_of< S > >.
Definition at line 67 of file mln/core/concept/site_set.hh.
typedef S mln::p_set_of< S >::element |
Element associated type.
Definition at line 81 of file p_set_of.hh.
typedef p_set_of< S > mln::Object< p_set_of< S > >::exact_t [inherited] |
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 90 of file p_set_of.hh.
typedef S mln::p_set_of< S >::i_element |
Insertion element associated type.
Definition at line 113 of file p_set_of.hh.
typedef fwd_piter mln::p_set_of< S >::piter |
Site_Iterator associated type.
Definition at line 98 of file p_set_of.hh.
typedef p_double_psite<self_, element> mln::p_set_of< S >::psite |
Psite associated type.
Definition at line 85 of file p_set_of.hh.
typedef p_set_of<S> mln::p_set_of< S >::self_ [private] |
Definition at line 76 of file p_set_of.hh.
typedef util::set<S> mln::p_set_of< S >::set_ [private] |
Definition at line 77 of file p_set_of.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 55 of file site_set_base.hh.
mln::p_set_of< S >::p_set_of | ( | ) | [inline] |
Constructor without arguments.
Definition at line 160 of file p_set_of.hh.
void mln::p_set_of< S >::clear | ( | ) | [inline] |
Clear this set.
Definition at line 211 of file p_set_of.hh.
References mln::util::set< T >::clear(), mln::internal::site_set_base_< S::site, p_set_of< S > >::is_empty(), and mln::p_set_of< S >::s_.
bool mln::p_set_of< S >::has | ( | const psite & | p | ) | const [inline] |
Test if p
belongs to this point set.
Definition at line 167 of file p_set_of.hh.
References mln::util::set< T >::has(), mln::p_double_psite< S, Sp >::index(), mln::util::set< T >::nelements(), mln::p_double_psite< S, Sp >::p(), and mln::p_set_of< S >::s_.
void mln::p_set_of< S >::insert | ( | const S & | s | ) | [inline] |
Insert a site set s
.
Definition at line 183 of file p_set_of.hh.
References mln::util::set< T >::insert(), mln::p_set_of< S >::s_, mln::internal::site_set_impl__bbox< mln_trait_site_set_bbox(S), S >::update_bbox_(), and mln::internal::site_set_impl__nsites< mln_trait_site_set_nsites(S), S >::update_nsites_().
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.
Referenced by mln::p_set_of< S >::clear().
bool mln::p_set_of< S >::is_valid | ( | ) | const [inline] |
Test if this set of runs is valid.
Definition at line 175 of file p_set_of.hh.
std::size_t mln::p_set_of< S >::memory_size | ( | ) | const [inline] |
Return the size of this site set in memory.
Definition at line 220 of file p_set_of.hh.
References mln::util::set< T >::memory_size(), and mln::p_set_of< S >::s_.
unsigned mln::p_set_of< S >::nelements | ( | ) | const [inline] |
Give the number of elements (site sets) of this composite.
Definition at line 203 of file p_set_of.hh.
References mln::util::set< T >::nelements(), and mln::p_set_of< S >::s_.
const S & mln::p_set_of< S >::operator[] | ( | unsigned | i | ) | const [inline] |
Return the i-th
site set.
Definition at line 194 of file p_set_of.hh.
References mln::util::set< T >::nelements(), and mln::p_set_of< S >::s_.
const util::set< S > & mln::p_set_of< S >::set_1_ | ( | ) | const [inline] |
Definition at line 236 of file p_set_of.hh.
References mln::p_set_of< S >::s_.
const S & mln::p_set_of< S >::set_2_ | ( | const I & | it | ) | const [inline] |
Definition at line 245 of file p_set_of.hh.
const util::set< S > & mln::p_set_of< S >::set_hook_ | ( | ) | const [inline] |
Hook to the set of runs.
Definition at line 228 of file p_set_of.hh.
References mln::p_set_of< S >::s_.
void mln::internal::site_set_impl__nsites< mln_trait_site_set_nsites(S) , S >::update_nsites_ | ( | const T & | ) | [protected, inherited] |
Referenced by mln::p_vaccess< V, S >::insert(), and mln::p_set_of< S >::insert().
util::set<S> mln::p_set_of< S >::s_ [protected] |
Set of site sets.
Definition at line 145 of file p_set_of.hh.
Referenced by mln::p_set_of< S >::clear(), mln::p_set_of< S >::has(), mln::p_set_of< S >::insert(), mln::p_set_of< S >::memory_size(), mln::p_set_of< S >::nelements(), mln::p_set_of< S >::operator[](), mln::p_set_of< S >::set_1_(), and mln::p_set_of< S >::set_hook_().