$extrastylesheet
#include <mln/core/site_set/p_run.hh>
Public Member Functions | |
| p_run () | |
| p_run (const P &start, unsigned short len) | |
| p_run (const P &start, const P &end) | |
| mln::box< P > | bbox () const |
| P | end () const |
| bool | has (const psite &p) const |
| bool | has (const P &p) const |
| bool | has_index (unsigned short i) const |
| void | init (const P &start, unsigned short len) |
| bool | is_empty () const |
| bool | is_valid () const |
| unsigned short | length () const |
| std::size_t | memory_size () const |
| unsigned | nsites () const |
| P | operator[] (unsigned short i) const |
| const P & | start () const |
Protected Attributes | |
| unsigned | len_ |
| P | start_ |
Public Types | |
| typedef p_run_bkd_piter_< P > | bkd_piter |
| typedef Site_Set< void > | category |
| typedef P | element |
| typedef p_run< P > | exact_t |
| typedef p_run_fwd_piter_< P > | fwd_piter |
| typedef fwd_piter | piter |
| typedef p_run_psite< P > | psite |
| typedef mln::box< P > | q_box |
| typedef subject< P >::ret | site |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename P > | |
| std::ostream & | operator<< (std::ostream &ostr, const p_run< P > &r) |
Point set class in run.
This is a mathematical set of points (not a multi-set). The parameter P shall be a Point type.
| mln::p_run< P >::p_run | ( | ) |
Constructor without argument.
| mln::p_run< P >::p_run | ( | const P & | start, |
| unsigned short | len | ||
| ) |
Constructor.
| mln::p_run< P >::p_run | ( | const P & | start, |
| const P & | end | ||
| ) |
Constructor.
| mln::box<P> mln::p_run< P >::bbox | ( | ) | const |
Give the exact bounding box.
| P mln::p_run< P >::end | ( | ) | const |
Return (compute) the ending point.
| bool mln::p_run< P >::has | ( | const psite & | p | ) | const |
Test if p belongs to this point set.
| bool mln::p_run< P >::has | ( | const P & | p | ) | const |
Test if p belongs to this point set.
| bool mln::p_run< P >::has_index | ( | unsigned short | i | ) | const |
Test if index i belongs to this point set.
| void mln::p_run< P >::init | ( | const P & | start, |
| unsigned short | len | ||
| ) |
Set the starting point.
|
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_run< P >::is_valid | ( | ) | const |
Test if this run is valid, i.e., with length > 0.
| unsigned short mln::p_run< P >::length | ( | ) | const |
Give the length of the run.
| std::size_t mln::p_run< P >::memory_size | ( | ) | const |
Return the size of this site set in memory.
| unsigned mln::p_run< P >::nsites | ( | ) | const |
Give the number of sites.
| P mln::p_run< P >::operator[] | ( | unsigned short | i | ) | const |
Return the i-th point.
| const P& mln::p_run< P >::start | ( | ) | const |
Return the starting point.
|
related |
|
protected |
|
protected |
| typedef p_run_bkd_piter_<P> mln::p_run< P >::bkd_piter |
Backward Site_Iterator associated type.
|
inherited |
Definition at line 74 of file core/concept/site_set.hh.
| typedef P mln::p_run< P >::element |
|
inherited |
| typedef p_run_fwd_piter_<P> mln::p_run< P >::fwd_piter |
Forward Site_Iterator associated type.
| typedef fwd_piter mln::p_run< P >::piter |
Site_Iterator associated type.
| typedef p_run_psite<P> mln::p_run< P >::psite |
| typedef mln::box<P> mln::p_run< P >::q_box |
|
inherited |
Site associated type.
Definition at line 58 of file site_set_base.hh.