#include <p_vaccess.hh>
Public Types | |
typedef p_double_piter< self_, typename vset::bkd_viter, typename S::bkd_piter > | bkd_piter |
Backward Site_Iterator associated type. | |
typedef Site_Set< void > | category |
typedef S::element | element |
Element associated type. | |
typedef E | exact_t |
typedef p_double_piter< self_, typename vset::fwd_viter, typename S::fwd_piter > | fwd_piter |
Forward Site_Iterator associated type. | |
typedef std::pair< V, element > | i_element |
Insertion element associated type. | |
typedef fwd_piter | piter |
Site_Iterator associated type. | |
typedef S | pset |
Inner site set associated type. | |
typedef p_double_psite< self_, S > | psite |
Psite associated type. | |
typedef subject< P >::ret | site |
Site associated type. | |
typedef vset | t_eligible_values_set |
typedef V | value |
Value associated type. | |
typedef mln::value::set< V > | vset |
Value_Set associated type. | |
Public Member Functions | |
void | clear () |
bool | has (const V &v, const typename S::psite &p) const |
Test if the couple (value v , psite p ) belongs to this site set. | |
bool | has (const psite &p) const |
Test if p belongs to this site set. | |
void | insert (const V &v, const element &e) |
Insert e at value v . | |
void | insert (const i_element &v_e) |
Insert a pair v_e (value v, element e). | |
bool | is_empty () const |
Test if the site set is empty. | |
bool | is_valid () const |
Test if this site set is valid. | |
std::size_t | memory_size () const |
Return the size of this site set in memory. | |
const S & | operator() (const V &v) const |
Return the site set at value v . | |
p_vaccess (const V &vset) | |
p_vaccess () | |
Constructor. | |
const mln::value::set< V > & | set_1_ () const |
const S & | set_2_ (const V &v) const |
const mln::value::set< V > & | values () const |
Give the set of values. | |
Protected Member Functions | |
void | update_nsites_ (const T &) |
Protected Attributes | |
std::vector< S > | ps_ |
mln::value::set< V > | vs_ |
Private Types | |
typedef p_vaccess< V, S > | self_ |
Related Functions | |
(Note that these are not member functions.) | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Set theoretic difference of lhs and rhs . | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | inter (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Intersection between a couple of point sets. | |
template<typename Sl, typename Sr> | |
bool | operator< (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Strict inclusion test between site sets lhs and rhs . | |
template<typename S> | |
std::ostream & | operator<< (std::ostream &ostr, const Site_Set< S > &set) |
Print a site set set into the output stream ostr . | |
template<typename Sl, typename Sr> | |
bool | operator<= (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Inclusion test between site sets lhs and rhs . | |
template<typename Sl, typename Sr> | |
bool | operator== (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Equality test between site sets lhs and rhs . | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | sym_diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Set theoretic symmetrical difference of lhs and rhs . | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | uni (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Union of a couple of point sets. | |
template<typename S> | |
p_set< typename S::site > | unique (const Site_Set< S > &s) |
Give the unique set of s . |
Definition at line 70 of file p_vaccess.hh.
typedef p_double_piter<self_, typename vset ::bkd_viter, typename S ::bkd_piter> mln::p_vaccess< V, S >::bkd_piter |
typedef Site_Set<void> mln::Site_Set< E >::category [inherited] |
typedef S ::element mln::p_vaccess< V, S >::element |
typedef E mln::Object< E >::exact_t [inherited] |
typedef p_double_piter<self_, typename vset ::fwd_viter, typename S ::fwd_piter> mln::p_vaccess< V, S >::fwd_piter |
typedef std::pair<V, element> mln::p_vaccess< V, S >::i_element |
typedef fwd_piter mln::p_vaccess< V, S >::piter |
typedef S mln::p_vaccess< V, S >::pset |
typedef p_double_psite<self_, S> mln::p_vaccess< V, S >::psite |
typedef p_vaccess<V,S> mln::p_vaccess< V, S >::self_ [private] |
Definition at line 74 of file p_vaccess.hh.
typedef subject<P>::ret mln::internal::site_set_base_< P, E >::site [inherited] |
Site associated type.
Reimplemented in mln::p_centered< W >.
Definition at line 55 of file site_set_base.hh.
typedef vset mln::p_vaccess< V, S >::t_eligible_values_set |
Definition at line 82 of file p_vaccess.hh.
typedef V mln::p_vaccess< V, S >::value |
typedef mln::value::set<V> mln::p_vaccess< V, S >::vset |
mln::p_vaccess< V, S >::p_vaccess | ( | ) | [inline] |
mln::p_vaccess< V, S >::p_vaccess | ( | const V & | vset | ) | [inline] |
Definition at line 171 of file p_vaccess.hh.
void mln::p_vaccess< V, S >::clear | ( | ) | [inline] |
Definition at line 224 of file p_vaccess.hh.
bool mln::p_vaccess< V, S >::has | ( | const V & | v, | |
const typename S::psite & | p | |||
) | const [inline] |
Test if the couple (value v
, psite p
) belongs to this site set.
Definition at line 189 of file p_vaccess.hh.
bool mln::p_vaccess< V, S >::has | ( | const psite & | p | ) | const [inline] |
void mln::p_vaccess< V, S >::insert | ( | const V & | v, | |
const element & | e | |||
) | [inline] |
Insert e
at value v
.
Definition at line 206 of file p_vaccess.hh.
References 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_().
void mln::p_vaccess< V, S >::insert | ( | const i_element & | v_e | ) | [inline] |
bool mln::internal::site_set_base_< P, E >::is_empty | ( | ) | const [inline, inherited] |
Test if the site set is empty.
This final method dispatches to is_empty_ whose default implementation relies on the 'nsites' method.
Definition at line 84 of file site_set_base.hh.
References mln::exact().
Referenced by mln::canvas::labeling::impl::generic::blobs(), mln::p_set_of< S >::clear(), mln::p_mutable_array_of< S >::clear(), mln::p_array< P >::clear(), mln::canvas::impl::generic::distance_geodesic(), mln::morpho::watershed::impl::generic::flooding(), mln::morpho::watershed::impl::flooding_fastest(), mln::p_queue_fast< P >::front(), mln::p_queue< P >::front(), mln::p_priority< P, Q >::front(), mln::p_priority< P, Q >::highest_priority(), mln::registration::icp(), mln::influence_zones(), mln::p_priority< P, Q >::lowest_priority(), mln::morpho::meyer_wst(), mln::p_queue_fast< P >::pop(), mln::p_queue< P >::pop(), mln::p_priority< P, Q >::pop(), mln::p_queue_fast< P >::pop_front(), mln::p_queue< P >::pop_front(), mln::p_priority< P, Q >::pop_front(), mln::registration::internal::registration_tests(), mln::geom::impl::seeds2tiling(), mln::geom::impl::seeds2tiling_roundness(), mln::morpho::skeleton_constrained(), and mln::morpho::watershed::topological().
bool mln::p_vaccess< V, S >::is_valid | ( | ) | const [inline] |
std::size_t mln::p_vaccess< V, S >::memory_size | ( | ) | const [inline] |
const S & mln::p_vaccess< V, S >::operator() | ( | const V & | v | ) | const [inline] |
const mln::value::set< V > & mln::p_vaccess< V, S >::set_1_ | ( | ) | const [inline] |
Definition at line 262 of file p_vaccess.hh.
const S & mln::p_vaccess< V, S >::set_2_ | ( | const V & | v | ) | const [inline] |
Definition at line 270 of file p_vaccess.hh.
void mln::internal::site_set_impl__nsites< mln_trait_site_set_nsites(S) , S >::update_nsites_ | ( | const T & | ) | [inline, protected, inherited] |
Referenced by mln::p_vaccess< V, S >::insert(), and mln::p_set_of< S >::insert().
const mln::value::set< V > & mln::p_vaccess< V, S >::values | ( | ) | const [inline] |
bool operator< | ( | const Site_Set< Sl > & | lhs, | |
const Site_Set< Sr > & | rhs | |||
) | [related, inherited] |
std::ostream & operator<< | ( | std::ostream & | ostr, | |
const Site_Set< S > & | set | |||
) | [related, inherited] |
bool operator<= | ( | const Site_Set< Sl > & | lhs, | |
const Site_Set< Sr > & | rhs | |||
) | [related, inherited] |
bool operator== | ( | const Site_Set< Sl > & | lhs, | |
const Site_Set< Sr > & | rhs | |||
) | [related, inherited] |
std::vector<S> mln::p_vaccess< V, S >::ps_ [protected] |
Definition at line 150 of file p_vaccess.hh.
mln::value::set<V> mln::p_vaccess< V, S >::vs_ [protected] |
Definition at line 149 of file p_vaccess.hh.