DGtal 1.4.0
|
Represents a signed cell in an unbounded cellular grid space by its Khalimsky coordinates and a boolean value. More...
#include <DGtal/topology/KhalimskyPreSpaceND.h>
Public Types | |
using | Integer = TInteger |
using | UnsignedInteger = typename NumberTraits<Integer>::UnsignedVersion |
using | Point = PointVector< dim, Integer > |
using | Self = SignedKhalimskyPreCell< dim, Integer > |
using | SPreCell = Self |
using | PreCellularGridSpace = KhalimskyPreSpaceND< dim, TInteger > |
using | CellularGridSpace = PreCellularGridSpace |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CInteger< TInteger >)) | |
SPreCell const & | preCell () const |
Returns the underlying constant pre-cell, itself in fact. | |
SignedKhalimskyPreCell (Integer dummy=0) | |
Default constructor. | |
SignedKhalimskyPreCell (Point const &aPoint, bool positive) | |
Implicit constructor from its Khalimsky coordinates. | |
SignedKhalimskyPreCell (SignedKhalimskyPreCell const &aCell)=default | |
Copy constructor. | |
SignedKhalimskyPreCell & | operator= (SignedKhalimskyPreCell const &aCell)=default |
Copy operator. | |
SignedKhalimskyPreCell (SignedKhalimskyPreCell &&aCell)=default | |
Move constructor. | |
SignedKhalimskyPreCell & | operator= (SignedKhalimskyPreCell &&aCell)=default |
Move operator. | |
bool | operator== (const SignedKhalimskyPreCell &other) const |
Equality operator. | |
bool | operator!= (const SignedKhalimskyPreCell &other) const |
Difference operator. | |
bool | operator< (const SignedKhalimskyPreCell &other) const |
Inferior operator. (lexicographic order). | |
std::string | className () const |
Return the style name used for drawing this object. | |
Data Fields | |
Point | coordinates |
Khalimsky coordinates of the cell. | |
bool | positive |
Cell sign. | |
Represents a signed cell in an unbounded cellular grid space by its Khalimsky coordinates and a boolean value.
dim | the dimension of the digital space. |
TInteger | the Integer class used to specify the arithmetic computations (default type = int32). |
Definition at line 169 of file KhalimskyPreSpaceND.h.
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::CellularGridSpace = PreCellularGridSpace |
Definition at line 183 of file KhalimskyPreSpaceND.h.
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::Integer = TInteger |
Definition at line 177 of file KhalimskyPreSpaceND.h.
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::Point = PointVector< dim, Integer > |
Definition at line 179 of file KhalimskyPreSpaceND.h.
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::PreCellularGridSpace = KhalimskyPreSpaceND< dim, TInteger > |
Definition at line 182 of file KhalimskyPreSpaceND.h.
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::Self = SignedKhalimskyPreCell< dim, Integer > |
Definition at line 180 of file KhalimskyPreSpaceND.h.
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::SPreCell = Self |
Definition at line 181 of file KhalimskyPreSpaceND.h.
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::UnsignedInteger = typename NumberTraits<Integer>::UnsignedVersion |
Definition at line 178 of file KhalimskyPreSpaceND.h.
|
explicit |
Default constructor.
DGtal::SignedKhalimskyPreCell< dim, TInteger >::SignedKhalimskyPreCell | ( | Point const & | aPoint, |
bool | positive ) |
Implicit constructor from its Khalimsky coordinates.
aPoint | Its Khalimsky coordinates as a point. |
positive | if cell has positive sign. |
|
default |
Copy constructor.
aCell | any other pre-cell. |
|
default |
Move constructor.
aCell | any other pre-cell. |
DGtal::SignedKhalimskyPreCell< dim, TInteger >::BOOST_CONCEPT_ASSERT | ( | (concepts::CInteger< TInteger >) | ) |
std::string DGtal::SignedKhalimskyPreCell< dim, TInteger >::className | ( | ) | const |
Return the style name used for drawing this object.
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator!= | ( | const SignedKhalimskyPreCell< dim, TInteger > & | other | ) | const |
Difference operator.
other | any other pre-cell. |
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator< | ( | const SignedKhalimskyPreCell< dim, TInteger > & | other | ) | const |
Inferior operator. (lexicographic order).
other | any other pre-cell. |
|
default |
Move operator.
aCell | any other pre-cell. |
|
default |
Copy operator.
aCell | any other pre-cell. |
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator== | ( | const SignedKhalimskyPreCell< dim, TInteger > & | other | ) | const |
Equality operator.
other | any other pre-cell. |
SPreCell const & DGtal::SignedKhalimskyPreCell< dim, TInteger >::preCell | ( | ) | const |
Returns the underlying constant pre-cell, itself in fact.
Point DGtal::SignedKhalimskyPreCell< dim, TInteger >::coordinates |
Khalimsky coordinates of the cell.
Definition at line 187 of file KhalimskyPreSpaceND.h.
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::positive |
Cell sign.
Definition at line 188 of file KhalimskyPreSpaceND.h.
Referenced by boost::hash< DGtal::SignedKhalimskyCell< dim, TInteger > >::operator()(), and std::hash< DGtal::SignedKhalimskyCell< dim, TInteger > >::operator()().