Point set class in run.
More...
#include <p_run.hh>
Inherits mln::internal::site_set_base_< P, p_run< P > >.
|
mln::box< P > | bbox () const |
| Give the exact bounding box.
|
|
P | end () const |
| Return (compute) the ending point.
|
|
bool | has (const psite &p) const |
| Test if p belongs to this point set.
|
|
bool | has (const P &p) const |
| Test if p belongs to this point set.
|
|
bool | has_index (unsigned short i) const |
| Test if index i belongs to this point set.
|
|
void | init (const P &start, unsigned short len) |
| Set the starting point.
|
|
bool | is_valid () const |
| Test if this run is valid, i.e., with length > 0.
|
|
unsigned short | length () const |
| Give the length of the run.
|
|
std::size_t | memory_size () const |
| Return the size of this site set in memory.
|
|
unsigned | nsites () const |
| Give the number of sites.
|
|
P | operator[] (unsigned short i) const |
| Return the i-th point.
|
|
| p_run () |
| Constructor without argument.
|
|
| p_run (const P &start, unsigned short len) |
| Constructor.
|
|
| p_run (const P &start, const P &end) |
| Constructor.
|
|
const P & | start () const |
| Return the starting point.
|
|
template<typename P>
class mln::p_run< P >
Point set class in run.
This is a mathematical set of points (not a multi-set). The parameter P
shall be a Point type.
Definition at line 86 of file p_run.hh.
Element associated type.
Definition at line 91 of file p_run.hh.
Psite associated type.
Definition at line 95 of file p_run.hh.
Constructor without argument.
Definition at line 223 of file p_run.hh.
template<typename P >
p_run< P >::p_run |
( |
const P & |
start, |
|
|
unsigned short |
len |
|
) |
| |
|
inline |
template<typename P >
p_run< P >::p_run |
( |
const P & |
start, |
|
|
const P & |
end |
|
) |
| |
|
inline |
Give the exact bounding box.
Definition at line 267 of file p_run.hh.
template<typename P >
P p_run< P >::end |
( |
| ) |
const |
|
inline |
Test if p
belongs to this point set.
Definition at line 276 of file p_run.hh.
template<typename P >
bool p_run< P >::has |
( |
const P & |
p | ) |
const |
|
inline |
Test if p
belongs to this point set.
Definition at line 289 of file p_run.hh.
template<typename P >
bool p_run< P >::has_index |
( |
unsigned short |
i | ) |
const |
|
inline |
Test if index i
belongs to this point set.
Definition at line 302 of file p_run.hh.
template<typename P >
void p_run< P >::init |
( |
const P & |
start, |
|
|
unsigned short |
len |
|
) |
| |
|
inline |
Set the starting point.
Definition at line 249 of file p_run.hh.
template<typename P >
bool p_run< P >::is_valid |
( |
| ) |
const |
|
inline |
Test if this run is valid, i.e., with length > 0.
Definition at line 259 of file p_run.hh.
template<typename P >
unsigned short p_run< P >::length |
( |
| ) |
const |
|
inline |
Give the length of the run.
Definition at line 319 of file p_run.hh.
template<typename P >
std::size_t p_run< P >::memory_size |
( |
| ) |
const |
|
inline |
Return the size of this site set in memory.
Definition at line 358 of file p_run.hh.
template<typename P >
unsigned p_run< P >::nsites |
( |
| ) |
const |
|
inline |
Give the number of sites.
Definition at line 310 of file p_run.hh.
template<typename P >
P p_run< P >::operator[] |
( |
unsigned short |
i | ) |
const |
|
inline |
template<typename P >
const P & p_run< P >::start |
( |
| ) |
const |
|
inline |
Return the starting point.
Definition at line 340 of file p_run.hh.