#include <box.hh>
Public Member Functions | |
const E & | bbox () const |
Give the bounding box of this site set. | |
bool | is_empty () const |
Test if this box is empty. | |
unsigned | len (unsigned i) const |
Give the length of the i-th side of the box. | |
unsigned | nsites () const |
Give the number of sites of this box. | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename Bl , typename Br > | |
bool | operator< (const Box< Bl > &lhs, const Box< Br > &rhs) |
Strict inclusion test between boxes lhs and rhs . | |
template<typename Bl , typename Br > | |
bool | operator<= (const Box< Bl > &lhs, const Box< Br > &rhs) |
Inclusion test between boxes lhs and rhs . |
Boxes are particular site sets useful to bound any set of sites defined on a regular grid.
const E & mln::Box< E >::bbox | ( | ) | const [inline] |
unsigned mln::Box< E >::len | ( | unsigned | i | ) | const [inline] |
unsigned mln::Box< E >::nsites | ( | ) | const [inline] |
Give the number of sites of this box.
Return the number of sites of this box. This method is declared by the mln::Site_Set concept.
Referenced by mln::morpho::line_gradient().