DGtal 1.3.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. More... | |
operator PreCell const & () const | |
Constant conversion to KhalimskyPreCell. More... | |
PreCell const & | preCell () const |
Returns the underlying constant pre-cell. More... | |
KhalimskyCell (Integer dummy=0) | |
Default constructor. More... | |
KhalimskyCell (const KhalimskyCell &other)=default | |
Copy constructor. More... | |
KhalimskyCell & | operator= (const KhalimskyCell &other)=default |
Copy operator. More... | |
KhalimskyCell (KhalimskyCell &&other)=default | |
Move constructor. More... | |
KhalimskyCell & | operator= (KhalimskyCell &&other)=default |
Move operator. More... | |
bool | operator== (const KhalimskyCell &other) const |
Equality operator. More... | |
bool | operator!= (const KhalimskyCell &other) const |
Difference operator. More... | |
bool | operator< (const KhalimskyCell &other) const |
Inferior operator. (lexicographic order). More... | |
std::string | className () const |
Return the style name used for drawing this object. More... | |
Private Member Functions | |
KhalimskyCell (const Point &aPoint) | |
Explicit constructor from its Khalimsky coordinates. More... | |
KhalimskyCell (const PreCell &aCell) | |
Explicit constructor from a KhalimskyPreCell. More... | |
operator PreCell & () | |
Mutable conversion to KhalimskyPreCell. More... | |
Private Attributes | |
PreCell | myPreCell |
Underlying pre-cell. More... | |
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 |
Return the style name used for drawing this object.
Default drawing style object.
Referenced by main().
|
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 std::hash< DGtal::KhalimskyCell< dim, TInteger > >::operator()(), and boost::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.