$extrastylesheet
#include <mln/accu/count_adjacent_vertices.hh>
Public Member Functions | |
count_adjacent_vertices () | |
bool | is_valid () const |
unsigned | subj_ () |
void | take_as_init (const T &t) |
void | take_as_init_ (const T &t) |
void | take_n_times (unsigned n, const T &t) |
void | take_n_times_ (unsigned n, const T &t) |
unsigned | to_result () const |
void | init () |
void | take (const argument &arg) |
void | take (const count_adjacent_vertices< F, S > &other) |
void | set_value (unsigned c) |
Protected Member Functions | |
void | update_ () |
Protected Attributes | |
unsigned | count__ |
std::set< unsigned > | vertices_ |
Public Types | |
typedef mln::util::pix < pw::image< F, S > > | argument |
typedef Accumulator< void > | category |
typedef count_adjacent_vertices< F, S > | exact_t |
typedef unsigned | q_result |
typedef mln::metal::unqualif < unsigned >::ret | result |
Accumulator class counting the number of vertices adjacent to a set of mln::p_edges_psite (i.e., a set of edges).
The type to be count is mln::util::pix< pw::image<F, S> > where F
and S
are the parameters of this class.
This accumulator is used by mln::closing_area_on_vertices and mln::opening_area_on_vertices.
Definition at line 58 of file accu/count_adjacent_vertices.hh.
mln::accu::count_adjacent_vertices< F, S >::count_adjacent_vertices | ( | ) |
void mln::accu::count_adjacent_vertices< F, S >::init | ( | ) |
Manipulators.
bool mln::accu::count_adjacent_vertices< F, S >::is_valid | ( | ) | const |
Return whether this accu can return a result.
void mln::accu::count_adjacent_vertices< F, S >::set_value | ( | unsigned | c | ) |
Force the value of the counter to c.
|
inherited |
void mln::accu::count_adjacent_vertices< F, S >::take | ( | const argument & | arg | ) |
void mln::accu::count_adjacent_vertices< F, S >::take | ( | const count_adjacent_vertices< F, S > & | other | ) |
|
inherited |
Take as initialization the value t
.
|
inherited |
INTERNAL_API
Default implementation of "take as initialization".
|
inherited |
Take n
times the value t
.
|
inherited |
INTERNAL_API
Default implementation of "take n times".
unsigned mln::accu::count_adjacent_vertices< F, S >::to_result | ( | ) | const |
Get the value of the accumulator.
|
protected |
Update the value of the counter.
|
protected |
The value of the counter.
Definition at line 88 of file accu/count_adjacent_vertices.hh.
|
protected |
The set of adjacent vertices.
Definition at line 90 of file accu/count_adjacent_vertices.hh.
typedef mln::util::pix< pw::image<F,S> > mln::accu::count_adjacent_vertices< F, S >::argument |
Definition at line 62 of file accu/count_adjacent_vertices.hh.
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
|
inherited |
|
inherited |