Base class for implementation classes of boxes. More...
#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 Sl , typename Sr > | |
| p_set< typename Sl::site > | diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) | 
Set theoretic difference of lhs and rhs.   | |
| template<typename Sl , typename Sr > | |
| p_set< typename Sl::site > | inter (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) | 
| Intersection between a couple of point sets.   | |
| template<typename Sl , typename Sr > | |
| bool | operator< (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) | 
Strict inclusion test between site sets lhs and rhs.   | |
| 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 S > | |
| std::ostream & | operator<< (std::ostream &ostr, const Site_Set< S > &set) | 
Print a site set set into the output stream ostr.   | |
| template<typename Sl , typename Sr > | |
| bool | operator<= (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) | 
Inclusion test between site sets 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.   | |
| template<typename Sl , typename Sr > | |
| bool | operator== (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) | 
Equality test between site sets lhs and rhs.   | |
| template<typename Sl , typename Sr > | |
| p_set< typename Sl::site > | sym_diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) | 
Set theoretic symmetrical difference of lhs and rhs.   | |
| template<typename Sl , typename Sr > | |
| p_set< typename Sl::site > | uni (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) | 
| Union of a couple of point sets.   | |
| template<typename S > | |
| p_set< typename S::site > | unique (const Site_Set< S > &s) | 
Give the unique set of s.   | |
Base class for implementation classes of boxes.
Boxes are particular site sets useful to bound any set of sites defined on a regular grid.
Definition at line 48 of file core/concept/box.hh.
| const E & mln::Box< E >::bbox | ( | ) |  const [inline] | 
        
Give the bounding box of this site set.
Return the bounding box of this site set, so that is itself. This method is declared by the mln::Site_Set concept.
Definition at line 124 of file core/concept/box.hh.
| bool mln::Box< E >::is_empty | ( | ) |  const [inline] | 
        
Test if this box is empty.
Definition at line 167 of file core/concept/box.hh.
| unsigned mln::Box< E >::len | ( | unsigned | i | ) |  const [inline] | 
        
Give the length of the i-th side of the box. 
Definition at line 131 of file core/concept/box.hh.
| 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.
Definition at line 153 of file core/concept/box.hh.
Referenced by mln::morpho::line_gradient().
| p_set< typename Sl::site > diff | ( | const Site_Set< Sl > & | lhs, | |
| const Site_Set< Sr > & | rhs | |||
| ) |  [related, inherited] | 
        
Set theoretic difference of lhs and rhs. 
Definition at line 66 of file set/diff.hh.
| p_set< typename Sl::site > inter | ( | const Site_Set< Sl > & | lhs, | |
| const Site_Set< Sr > & | rhs | |||
| ) |  [related, inherited] | 
        
Intersection between a couple of point sets.
Definition at line 62 of file set/inter.hh.
| bool operator< | ( | const Site_Set< Sl > & | lhs, | |
| const Site_Set< Sr > & | rhs | |||
| ) |  [related, inherited] | 
        
Strict inclusion test between site sets lhs and rhs. 
| [in] | lhs | A site set (strictly included?). | 
| [in] | rhs | Another site set (includer?). | 
Definition at line 479 of file operators.hh.
| bool operator< | ( | const Box< Bl > & | lhs, | |
| const Box< Br > & | rhs | |||
| ) |  [related] | 
        
Strict inclusion test between boxes lhs and rhs. 
| [in] | lhs | A box (strictly included?). | 
| [in] | rhs | Another box (includor?). | 
Definition at line 193 of file core/concept/box.hh.
| std::ostream & operator<< | ( | std::ostream & | ostr, | |
| const Site_Set< S > & | set | |||
| ) |  [related, inherited] | 
        
Print a site set set into the output stream ostr. 
| [in,out] | ostr | An output stream. | 
| [in] | set | A site set. | 
ostr. Definition at line 505 of file operators.hh.
| bool operator<= | ( | const Site_Set< Sl > & | lhs, | |
| const Site_Set< Sr > & | rhs | |||
| ) |  [related, inherited] | 
        
Inclusion test between site sets lhs and rhs. 
| [in] | lhs | A site set (included?). | 
| [in] | rhs | Another site set (includer?). | 
Definition at line 491 of file operators.hh.
| bool operator<= | ( | const Box< Bl > & | lhs, | |
| const Box< Br > & | rhs | |||
| ) |  [related] | 
        
Inclusion test between boxes lhs and rhs. 
| [in] | lhs | A box (included?). | 
| [in] | rhs | Another box (includor?). | 
Definition at line 178 of file core/concept/box.hh.
| bool operator== | ( | const Site_Set< Sl > & | lhs, | |
| const Site_Set< Sr > & | rhs | |||
| ) |  [related, inherited] | 
        
Equality test between site sets lhs and rhs. 
| [in] | lhs | A site set. | 
| [in] | rhs | Another site set. | 
Definition at line 467 of file operators.hh.
| p_set< typename Sl::site > sym_diff | ( | const Site_Set< Sl > & | lhs, | |
| const Site_Set< Sr > & | rhs | |||
| ) |  [related, inherited] | 
        
Set theoretic symmetrical difference of lhs and rhs. 
Definition at line 65 of file sym_diff.hh.
 1.7.1