DGtal 1.4.0
|
Represents an (unsigned) cell in a cellular grid space by its Khalimsky coordinates. More...
#include <DGtal/topology/KhalimskySpaceND.h>
Public Types | |
using | Integer = TInteger |
using | UnsignedInteger = typename NumberTraits<Integer>::UnsignedVersion |
using | Point = PointVector< dim, Integer > |
using | PreCell = KhalimskyPreCell< dim, Integer > |
using | CellularGridSpace = KhalimskySpaceND< dim, TInteger > |
using | PreCellularGridSpace = KhalimskyPreSpaceND< dim, TInteger > |
using | Self = KhalimskyCell< dim, Integer > |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CInteger< TInteger >)) | |
Integer must be a model of the concept CInteger. | |
operator PreCell const & () const | |
Constant conversion to KhalimskyPreCell. | |
PreCell const & | preCell () const |
Returns the underlying constant pre-cell. | |
KhalimskyCell (Integer dummy=0) | |
Default constructor. | |
KhalimskyCell (const KhalimskyCell &other)=default | |
Copy constructor. | |
KhalimskyCell & | operator= (const KhalimskyCell &other)=default |
Copy operator. | |
KhalimskyCell (KhalimskyCell &&other)=default | |
Move constructor. | |
KhalimskyCell & | operator= (KhalimskyCell &&other)=default |
Move operator. | |
bool | operator== (const KhalimskyCell &other) const |
Equality operator. | |
bool | operator!= (const KhalimskyCell &other) const |
Difference operator. | |
bool | operator< (const KhalimskyCell &other) const |
Inferior operator. (lexicographic order). | |
std::string | className () const |
Return the style name used for drawing this object. | |
Private Member Functions | |
KhalimskyCell (const Point &aPoint) | |
Explicit constructor from its Khalimsky coordinates. | |
KhalimskyCell (const PreCell &aCell) | |
Explicit constructor from a KhalimskyPreCell. | |
operator PreCell & () | |
Mutable conversion to KhalimskyPreCell. | |
Private Attributes | |
PreCell | myPreCell |
Underlying pre-cell. | |
Friends | |
class | KhalimskySpaceND< dim, TInteger > |
class | KhalimskySpaceNDHelper< CellularGridSpace > |
Represents an (unsigned) cell in a cellular grid space by its Khalimsky coordinates.
dim | the dimension of the digital space. |
TInteger | the Integer class used to specify the arithmetic computations (default type = int32). |
Definition at line 82 of file KhalimskySpaceND.h.
using DGtal::KhalimskyCell< dim, TInteger >::CellularGridSpace = KhalimskySpaceND< dim, TInteger > |
Definition at line 95 of file KhalimskySpaceND.h.
using DGtal::KhalimskyCell< dim, TInteger >::Integer = TInteger |
Definition at line 91 of file KhalimskySpaceND.h.
using DGtal::KhalimskyCell< dim, TInteger >::Point = PointVector< dim, Integer > |
Definition at line 93 of file KhalimskySpaceND.h.
using DGtal::KhalimskyCell< dim, TInteger >::PreCell = KhalimskyPreCell< dim, Integer > |
Definition at line 94 of file KhalimskySpaceND.h.
using DGtal::KhalimskyCell< dim, TInteger >::PreCellularGridSpace = KhalimskyPreSpaceND< dim, TInteger > |
Definition at line 96 of file KhalimskySpaceND.h.
using DGtal::KhalimskyCell< dim, TInteger >::Self = KhalimskyCell< dim, Integer > |
Definition at line 97 of file KhalimskySpaceND.h.
using DGtal::KhalimskyCell< dim, TInteger >::UnsignedInteger = typename NumberTraits<Integer>::UnsignedVersion |
Definition at line 92 of file KhalimskySpaceND.h.
|
explicitprivate |
Explicit constructor from its Khalimsky coordinates.
aPoint | Its Khalimsky coordinates as a point. |
|
explicitprivate |
Explicit constructor from a KhalimskyPreCell.
aCell | a pre-cell. |
|
explicit |
Default constructor.
|
default |
Copy constructor.
other | any other cell. |
|
default |
Move constructor.
other | any other cell. |
DGtal::KhalimskyCell< dim, TInteger >::BOOST_CONCEPT_ASSERT | ( | (concepts::CInteger< TInteger >) | ) |
Integer must be a model of the concept CInteger.
std::string DGtal::KhalimskyCell< dim, TInteger >::className | ( | ) | const |
|
explicitprivate |
Mutable conversion to KhalimskyPreCell.
DGtal::KhalimskyCell< dim, TInteger >::operator PreCell const & | ( | ) | const |
Constant conversion to KhalimskyPreCell.
bool DGtal::KhalimskyCell< dim, TInteger >::operator!= | ( | const KhalimskyCell< dim, TInteger > & | other | ) | const |
Difference operator.
other | any other cell. |
bool DGtal::KhalimskyCell< dim, TInteger >::operator< | ( | const KhalimskyCell< dim, TInteger > & | other | ) | const |
Inferior operator. (lexicographic order).
other | any other cell. |
|
default |
Copy operator.
other | any other cell. |
|
default |
Move operator.
other | any other cell. |
bool DGtal::KhalimskyCell< dim, TInteger >::operator== | ( | const KhalimskyCell< dim, TInteger > & | other | ) | const |
Equality operator.
other | any other cell. |
PreCell const & DGtal::KhalimskyCell< dim, TInteger >::preCell | ( | ) | const |
Returns the underlying constant pre-cell.
Referenced by boost::hash< DGtal::KhalimskyCell< dim, TInteger > >::operator()(), and std::hash< DGtal::KhalimskyCell< dim, TInteger > >::operator()().
|
friend |
Definition at line 86 of file KhalimskySpaceND.h.
|
friend |
Definition at line 86 of file KhalimskySpaceND.h.
|
private |
Underlying pre-cell.
Definition at line 105 of file KhalimskySpaceND.h.