$extrastylesheet
#include <mln/core/site_set/p_if.hh>
Public Member Functions | |
| p_if (const S &s, const F &f) | |
| p_if () | |
| bool | has (const psite &p) const |
| bool | is_empty () const |
| bool | is_valid () const |
| std::size_t | memory_size () const |
| const S & | overset () const |
| bool | pred (const psite &p) const |
| const F & | predicate () const |
Protected Attributes | |
| F | f_ |
| S | s_ |
Public Types | |
| typedef p_if_piter_< typename S::bkd_piter, S, F > | bkd_piter |
| typedef Site_Set< void > | category |
| typedef S::element | element |
| typedef p_if< S, F > | exact_t |
| typedef p_if_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_if< S, F > | operator| (const Site_Set< S > &s, const Function_v2b< F > &f) |
Site set restricted w.r.t.
a predicate.
Parameter S is a site set type; parameter F is a function from point to Boolean.
Constructor with a site set s and a predicate f.
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.
Test if this site set is valid.
| std::size_t mln::p_if< S, F >::memory_size | ( | ) | const |
Return the size of this site set in memory.
| const S& mln::p_if< S, F >::overset | ( | ) | const |
Give the primary overset.
Test predicate on point site p.
| const F& mln::p_if< S, F >::predicate | ( | ) | const |
Give the predicate function.
|
related |
Restrict a site set s to points that verify f.
| [in] | s | A site set. |
| [in] | f | A function from point to Boolean. |
|
protected |
|
protected |
| typedef p_if_piter_<typename S ::bkd_piter, S, F> mln::p_if< S, F >::bkd_piter |
Backward Site_Iterator associated type.
|
inherited |
Definition at line 74 of file core/concept/site_set.hh.
|
inherited |
| typedef p_if_piter_<typename S ::fwd_piter, S, F> mln::p_if< S, F >::fwd_piter |
Forward Site_Iterator associated type.
Site_Iterator associated type.
|
inherited |
Site associated type.
Definition at line 58 of file site_set_base.hh.