#include <p_vertices.hh>
Public Types | |
typedef Site_Set< void > | category |
typedef E | exact_t |
typedef F | fun_t |
Function associated type. | |
typedef util::vertex< G > | graph_element |
Type of graph element this site set focuses on. | |
typedef G | graph_t |
Graph associated type. | |
typedef subject< P >::ret | site |
Site associated type. | |
typedef util::vertex< G > | vertex |
Type of graph vertex. | |
typedef p_graph_piter< self_, mln_vertex_bkd_iter(G) > | bkd_piter |
Backward Site_Iterator associated type. | |
typedef super_::site | element |
Associated types. | |
typedef p_graph_piter< self_, mln_vertex_fwd_iter(G) > | fwd_piter |
Forward Site_Iterator associated type. | |
typedef fwd_piter | piter |
Site_Iterator associated type. | |
typedef p_vertices_psite< G, F > | psite |
Point_Site associated type. | |
Public Member Functions | |
template<typename G2> | |
bool | has (const util::vertex< G2 > &v) const |
Does this site set has v? | |
bool | has (const psite &p) const |
Does this site set has p? | |
void | invalidate () |
Invalidate this site set. | |
bool | is_empty () const |
Test if the site set is empty. | |
bool | is_valid () const |
Test this site set validity. | |
std::size_t | memory_size () const |
Does this site set has vertex_id? FIXME: causes ambiguities while calling has(mln::neighb_fwd_niter<>); bool has(unsigned vertex_id) const;. | |
unsigned | nsites () const |
Return The number of points (sites) of the set, i.e., the number of vertices. | |
unsigned | nvertices () const |
Return The number of vertices in the graph. | |
template<typename F2> | |
p_vertices (const p_vertices< G, F2 > &other) | |
Copy constructor. | |
template<typename F2> | |
p_vertices (const Graph< G > &gr, const Function< F2 > &f) | |
Construct a graph psite set from a graph of points. | |
p_vertices (const Graph< G > &gr, const Function< F > &f) | |
Construct a graph psite set from a graph of points. | |
p_vertices (const Graph< G > &gr) | |
Construct a graph psite set from a graph of points. | |
p_vertices () | |
Constructor without argument. | |
const F & | function () const |
Return the association function. | |
const G & | graph () const |
Accessors. | |
F::result | operator() (unsigned id_v) const |
F::result | operator() (const util::vertex< G > &p) const |
F::result | operator() (const psite &p) const |
Return the value associated to an element of this site set. | |
Package Attributes | |
__pad0__:site_set_base_< typename F ::result | |
self_ | super_ |
Private Types | |
typedef p_vertices< G, F > | self_ |
Private Attributes | |
F | f_ |
G | g_ |
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 71 of file p_vertices.hh.
typedef p_graph_piter< self_, mln_vertex_bkd_iter(G) > mln::p_vertices< G, F >::bkd_piter |
typedef Site_Set<void> mln::Site_Set< E >::category [inherited] |
typedef super_ ::site mln::p_vertices< G, F >::element |
typedef E mln::Object< E >::exact_t [inherited] |
typedef F mln::p_vertices< G, F >::fun_t |
typedef p_graph_piter< self_, mln_vertex_fwd_iter(G) > mln::p_vertices< G, F >::fwd_piter |
typedef util::vertex<G> mln::p_vertices< G, F >::graph_element |
typedef G mln::p_vertices< G, F >::graph_t |
typedef fwd_piter mln::p_vertices< G, F >::piter |
typedef p_vertices_psite<G,F> mln::p_vertices< G, F >::psite |
typedef p_vertices<G,F> mln::p_vertices< G, F >::self_ [private] |
Definition at line 75 of file p_vertices.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 util::vertex<G> mln::p_vertices< G, F >::vertex |
mln::p_vertices< G, F >::p_vertices | ( | ) | [inline] |
mln::p_vertices< G, F >::p_vertices | ( | const Graph< G > & | gr | ) | [inline] |
Construct a graph psite set from a graph of points.
Definition at line 226 of file p_vertices.hh.
References mln::exact(), and mln::p_vertices< G, F >::is_valid().
mln::p_vertices< G, F >::p_vertices | ( | const Graph< G > & | gr, | |
const Function< F > & | f | |||
) | [inline] |
Construct a graph psite set from a graph of points.
gr | The graph upon which the graph psite set is built. | |
f | the function which maps a vertex to a site. |
Definition at line 238 of file p_vertices.hh.
References mln::exact(), and mln::p_vertices< G, F >::is_valid().
mln::p_vertices< G, F >::p_vertices | ( | const Graph< G > & | gr, | |
const Function< F2 > & | f | |||
) | [inline] |
Construct a graph psite set from a graph of points.
gr | The graph upon which the graph psite set is built. | |
f | the function which maps a vertex to a site. It must be convertible to the function type F . |
Definition at line 248 of file p_vertices.hh.
References mln::exact(), mln::convert::from_to(), and mln::p_vertices< G, F >::is_valid().
mln::p_vertices< G, F >::p_vertices | ( | const p_vertices< G, F2 > & | other | ) | [inline] |
Copy constructor.
Definition at line 260 of file p_vertices.hh.
References mln::convert::from_to(), mln::p_vertices< G, F >::function(), mln::p_vertices< G, F >::graph(), and mln::p_vertices< G, F >::is_valid().
const F & mln::p_vertices< G, F >::function | ( | ) | const [inline] |
Return the association function.
Definition at line 385 of file p_vertices.hh.
Referenced by mln::p_vertices< G, F >::p_vertices().
const G & mln::p_vertices< G, F >::graph | ( | ) | const [inline] |
Accessors.
Return the graph associated to this site set (const version)
Definition at line 376 of file p_vertices.hh.
References mln::p_vertices< G, F >::is_valid().
Referenced by mln::debug::draw_graph(), mln::operator==(), and mln::p_vertices< G, F >::p_vertices().
bool mln::p_vertices< G, F >::has | ( | const util::vertex< G2 > & | v | ) | const [inline] |
Does this site set has v?
Definition at line 314 of file p_vertices.hh.
References mln::util::vertex< G >::graph(), mln::util::vertex< G >::is_valid(), and mln::p_vertices< G, F >::is_valid().
bool mln::p_vertices< G, F >::has | ( | const psite & | p | ) | const [inline] |
Does this site set has p?
Definition at line 304 of file p_vertices.hh.
References mln::p_vertices< G, F >::is_valid(), and mln::p_vertices_psite< G, F >::v().
void mln::p_vertices< G, F >::invalidate | ( | ) | [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_vertices< G, F >::is_valid | ( | ) | const [inline] |
Test this site set validity.
Definition at line 288 of file p_vertices.hh.
Referenced by mln::p_vertices< G, F >::graph(), mln::p_vertices< G, F >::has(), and mln::p_vertices< G, F >::p_vertices().
std::size_t mln::p_vertices< G, F >::memory_size | ( | ) | const [inline] |
Does this site set has vertex_id? FIXME: causes ambiguities while calling has(mln::neighb_fwd_niter<>); bool has(unsigned vertex_id) const;.
Definition at line 339 of file p_vertices.hh.
unsigned mln::p_vertices< G, F >::nsites | ( | ) | const [inline] |
Return The number of points (sites) of the set, i.e., the number of vertices.
Required by the mln::Point_Set concept.
Definition at line 272 of file p_vertices.hh.
References mln::p_vertices< G, F >::nvertices().
unsigned mln::p_vertices< G, F >::nvertices | ( | ) | const [inline] |
Return The number of vertices in the graph.
Definition at line 280 of file p_vertices.hh.
Referenced by mln::p_vertices< G, F >::nsites().
F::result mln::p_vertices< G, F >::operator() | ( | unsigned | id_v | ) | const [inline] |
F::result mln::p_vertices< G, F >::operator() | ( | const util::vertex< G > & | p | ) | const [inline] |
Definition at line 358 of file p_vertices.hh.
F::result mln::p_vertices< G, F >::operator() | ( | const psite & | p | ) | const [inline] |
Return the value associated to an element of this site set.
Definition at line 349 of file p_vertices.hh.
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] |
mln::p_vertices< G, F >::__pad0__ [package] |
Definition at line 76 of file p_vertices.hh.
F mln::p_vertices< G, F >::f_ [private] |
G mln::p_vertices< G, F >::g_ [private] |
Definition at line 185 of file p_vertices.hh.
self_ mln::p_vertices< G, F >::super_ [package] |
Definition at line 76 of file p_vertices.hh.