DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
DGtal::KhalimskyCell< dim, TInteger > Struct Template Reference

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...
 
KhalimskyCelloperator= (const KhalimskyCell &other)=default
 Copy operator. More...
 
 KhalimskyCell (KhalimskyCell &&other)=default
 Move constructor. More...
 
KhalimskyCelloperator= (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 >
 

Detailed Description

template<Dimension dim, typename TInteger = DGtal::int32_t>
struct DGtal::KhalimskyCell< dim, TInteger >

Represents an (unsigned) cell in a cellular grid space by its Khalimsky coordinates.

Template Parameters
dimthe dimension of the digital space.
TIntegerthe Integer class used to specify the arithmetic computations (default type = int32).

Definition at line 82 of file KhalimskySpaceND.h.

Member Typedef Documentation

◆ CellularGridSpace

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::KhalimskyCell< dim, TInteger >::CellularGridSpace = KhalimskySpaceND< dim, TInteger >

Definition at line 95 of file KhalimskySpaceND.h.

◆ Integer

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::KhalimskyCell< dim, TInteger >::Integer = TInteger

Definition at line 91 of file KhalimskySpaceND.h.

◆ Point

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::KhalimskyCell< dim, TInteger >::Point = PointVector< dim, Integer >

Definition at line 93 of file KhalimskySpaceND.h.

◆ PreCell

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::KhalimskyCell< dim, TInteger >::PreCell = KhalimskyPreCell< dim, Integer >

Definition at line 94 of file KhalimskySpaceND.h.

◆ PreCellularGridSpace

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::KhalimskyCell< dim, TInteger >::PreCellularGridSpace = KhalimskyPreSpaceND< dim, TInteger >

Definition at line 96 of file KhalimskySpaceND.h.

◆ Self

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::KhalimskyCell< dim, TInteger >::Self = KhalimskyCell< dim, Integer >

Definition at line 97 of file KhalimskySpaceND.h.

◆ UnsignedInteger

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::KhalimskyCell< dim, TInteger >::UnsignedInteger = typename NumberTraits<Integer>::UnsignedVersion

Definition at line 92 of file KhalimskySpaceND.h.

Constructor & Destructor Documentation

◆ KhalimskyCell() [1/5]

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::KhalimskyCell ( const Point aPoint)
explicitprivate

Explicit constructor from its Khalimsky coordinates.

Parameters
aPointIts Khalimsky coordinates as a point.

◆ KhalimskyCell() [2/5]

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::KhalimskyCell ( const PreCell aCell)
explicitprivate

Explicit constructor from a KhalimskyPreCell.

Parameters
aCella pre-cell.

◆ KhalimskyCell() [3/5]

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::KhalimskyCell ( Integer  dummy = 0)
explicit

Default constructor.

◆ KhalimskyCell() [4/5]

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::KhalimskyCell ( const KhalimskyCell< dim, TInteger > &  other)
default

Copy constructor.

Parameters
otherany other cell.

◆ KhalimskyCell() [5/5]

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::KhalimskyCell ( KhalimskyCell< dim, TInteger > &&  other)
default

Move constructor.

Parameters
otherany other cell.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CInteger< TInteger >)  )

Integer must be a model of the concept CInteger.

◆ className()

template<Dimension dim, typename TInteger = DGtal::int32_t>
std::string DGtal::KhalimskyCell< dim, TInteger >::className ( ) const

Return the style name used for drawing this object.

Default drawing style object.

Returns
the dyn. alloc. default style for this object.
the style name used for drawing this object.

Referenced by main().

◆ operator PreCell &()

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::operator PreCell & ( )
explicitprivate

Mutable conversion to KhalimskyPreCell.

◆ operator PreCell const &()

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::KhalimskyCell< dim, TInteger >::operator PreCell const & ( ) const

Constant conversion to KhalimskyPreCell.

◆ operator!=()

template<Dimension dim, typename TInteger = DGtal::int32_t>
bool DGtal::KhalimskyCell< dim, TInteger >::operator!= ( const KhalimskyCell< dim, TInteger > &  other) const

Difference operator.

Parameters
otherany other cell.

◆ operator<()

template<Dimension dim, typename TInteger = DGtal::int32_t>
bool DGtal::KhalimskyCell< dim, TInteger >::operator< ( const KhalimskyCell< dim, TInteger > &  other) const

Inferior operator. (lexicographic order).

Parameters
otherany other cell.

◆ operator=() [1/2]

template<Dimension dim, typename TInteger = DGtal::int32_t>
KhalimskyCell & DGtal::KhalimskyCell< dim, TInteger >::operator= ( const KhalimskyCell< dim, TInteger > &  other)
default

Copy operator.

Parameters
otherany other cell.

◆ operator=() [2/2]

template<Dimension dim, typename TInteger = DGtal::int32_t>
KhalimskyCell & DGtal::KhalimskyCell< dim, TInteger >::operator= ( KhalimskyCell< dim, TInteger > &&  other)
default

Move operator.

Parameters
otherany other cell.

◆ operator==()

template<Dimension dim, typename TInteger = DGtal::int32_t>
bool DGtal::KhalimskyCell< dim, TInteger >::operator== ( const KhalimskyCell< dim, TInteger > &  other) const

Equality operator.

Parameters
otherany other cell.

◆ preCell()

template<Dimension dim, typename TInteger = DGtal::int32_t>
PreCell const & DGtal::KhalimskyCell< dim, TInteger >::preCell ( ) const

Friends And Related Function Documentation

◆ KhalimskySpaceND< dim, TInteger >

template<Dimension dim, typename TInteger = DGtal::int32_t>
friend class KhalimskySpaceND< dim, TInteger >
friend

Definition at line 86 of file KhalimskySpaceND.h.

◆ KhalimskySpaceNDHelper< CellularGridSpace >

template<Dimension dim, typename TInteger = DGtal::int32_t>
friend class KhalimskySpaceNDHelper< CellularGridSpace >
friend

Definition at line 86 of file KhalimskySpaceND.h.

Field Documentation

◆ myPreCell

template<Dimension dim, typename TInteger = DGtal::int32_t>
PreCell DGtal::KhalimskyCell< dim, TInteger >::myPreCell
private

Underlying pre-cell.

Definition at line 105 of file KhalimskySpaceND.h.


The documentation for this struct was generated from the following file: