#include <site_set_base.hh>
Inherits mln::Site_Set< E >.
Inherited by mln::p_array< P >, mln::p_centered< W >, mln::p_complex< D, G >, mln::p_edges< G, F >, mln::p_faces< N, D, P >, mln::p_if< S, F >, mln::p_image< I >, mln::p_key< K, P >, mln::p_line2d, mln::p_mutable_array_of< S >, mln::p_priority< P, Q >, mln::p_queue< P >, mln::p_queue_fast< P >, mln::p_run< P >, mln::p_set< P >, mln::p_set_of< S >, mln::p_transformed< S, F >, mln::p_vaccess< V, S >, mln::p_vertices< G, F >, mln::p_array< I::psite >, mln::p_array< mln::point >, mln::p_complex< D, P >, mln::p_edges< G, mln::fun::i2v::array >, mln::p_if< I::domain_t, F >, mln::p_if< S, mln::fun::p2b::has< I > >, mln::p_queue_fast< I::psite >, mln::p_transformed< I::domain_t, F >, and mln::p_vertices< G, mln::fun::i2v::array >.
Public Types | |
typedef Site_Set< void > | category |
typedef E | exact_t |
typedef subject< P >::ret | site |
Site associated type. | |
Public Member Functions | |
bool | is_empty () const |
Test if the site set is empty. | |
Protected Member Functions | |
site_set_base_ () | |
Private Member Functions | |
bool | is_empty_ () const |
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 . |
P | The psite type of what is ``contained'' in the site set, not the psite of the site set (which is different, and defined by the site set itself). | |
E | The exact type of the site set. |
Definition at line 52 of file site_set_base.hh.
typedef Site_Set<void> mln::Site_Set< E >::category [inherited] |
typedef E mln::Object< E >::exact_t [inherited] |
typedef subject<P>::ret mln::internal::site_set_base_< P, E >::site |
Site associated type.
Reimplemented in mln::p_centered< W >.
Definition at line 55 of file site_set_base.hh.
mln::internal::site_set_base_< P, E >::site_set_base_ | ( | ) | [inline, protected] |
Definition at line 77 of file site_set_base.hh.
bool mln::internal::site_set_base_< P, E >::is_empty | ( | ) | const [inline] |
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::internal::site_set_base_< P, E >::is_empty_ | ( | ) | const [inline, private] |
Reimplemented in mln::p_mutable_array_of< S >.
Definition at line 92 of file site_set_base.hh.
References mln::exact().
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] |