$extrastylesheet
#include <mln/core/site_set/p_transformed.hh>
Public Member Functions | |
p_transformed (const S &s, const F &f) | |
p_transformed () | |
const F & | function () const |
bool | has (const psite &p) const |
bool | is_empty () const |
bool | is_valid () const |
std::size_t | memory_size () const |
const S & | primary_set () const |
Protected Attributes | |
F | f_ |
S | s_ |
Public Types | |
typedef p_transformed_piter < typename S::bkd_piter, S, F > | bkd_piter |
typedef Site_Set< void > | category |
typedef S::element | element |
typedef p_transformed< S, F > | exact_t |
typedef p_transformed_piter < typename S::fwd_piter, S, F > | fwd_piter |
typedef fwd_piter | piter |
typedef S::psite | psite |
typedef subject< S::psite >::ret | site |
Related Functions | |
(Note that these are not member functions.) | |
template<typename S , typename F > | |
p_transformed< S, F > | ptransform (const Site_Set< S > &s, const Function_v2v< F > &f) |
Site set transformed through a function.
Parameter S
is a site set type; parameter F is a function from site to site.
Definition at line 85 of file p_transformed.hh.
mln::p_transformed< S, F >::p_transformed | ( | const S & | s, |
const F & | f | ||
) |
Constructor with a site set s
and a predicate f
.
mln::p_transformed< S, F >::p_transformed | ( | ) |
Constructor without argument.
const F& mln::p_transformed< S, F >::function | ( | ) | const |
Return the transformation function.
bool mln::p_transformed< S, F >::has | ( | const psite & | p | ) | const |
Test if p
belongs to the subset.
|
inherited |
Test if the site set is empty.
This final method dispatches to is_empty_ whose default implementation relies on the 'nsites' method.
bool mln::p_transformed< S, F >::is_valid | ( | ) | const |
Test if this site set is valid.
std::size_t mln::p_transformed< S, F >::memory_size | ( | ) | const |
Return the size of this site set in memory.
const S& mln::p_transformed< S, F >::primary_set | ( | ) | const |
Return the primary set.
|
related |
Transform a site set s
through the function f
.
[in] | s | A site set. |
[in] | f | A function from site to site. |
<S,F>
|
protected |
Definition at line 137 of file p_transformed.hh.
|
protected |
Definition at line 136 of file p_transformed.hh.
typedef p_transformed_piter<typename S ::bkd_piter, S, F> mln::p_transformed< S, F >::bkd_piter |
Backward Site_Iterator associated type.
Definition at line 104 of file p_transformed.hh.
|
inherited |
Definition at line 74 of file core/concept/site_set.hh.
typedef S ::element mln::p_transformed< S, F >::element |
Element associated type.
Definition at line 94 of file p_transformed.hh.
|
inherited |
typedef p_transformed_piter<typename S ::fwd_piter, S, F> mln::p_transformed< S, F >::fwd_piter |
Forward Site_Iterator associated type.
Definition at line 101 of file p_transformed.hh.
typedef fwd_piter mln::p_transformed< S, F >::piter |
Site_Iterator associated type.
Definition at line 107 of file p_transformed.hh.
typedef S ::psite mln::p_transformed< S, F >::psite |
Psite associated type.
Definition at line 98 of file p_transformed.hh.
|
inherited |
Site associated type.
Definition at line 58 of file site_set_base.hh.