DGtal  0.9.4beta
Public Types | Public Member Functions | Data Fields
DGtal::SignedKhalimskyPreCell< dim, TInteger > Struct Template Reference

#include <DGtal/topology/KhalimskyPreSpaceND.h>

Inheritance diagram for DGtal::SignedKhalimskyPreCell< dim, TInteger >:
[legend]
Collaboration diagram for DGtal::SignedKhalimskyPreCell< dim, TInteger >:
[legend]

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
 
 SignedKhalimskyPreCell (Integer dummy=0)
 
 SignedKhalimskyPreCell (Point const &aPoint, bool positive)
 
 SignedKhalimskyPreCell (SignedKhalimskyPreCell const &aCell)=default
 
SignedKhalimskyPreCelloperator= (SignedKhalimskyPreCell const &aCell)=default
 
 SignedKhalimskyPreCell (SignedKhalimskyPreCell &&aCell)=default
 
SignedKhalimskyPreCelloperator= (SignedKhalimskyPreCell &&aCell)=default
 
bool operator== (const SignedKhalimskyPreCell &other) const
 
bool operator!= (const SignedKhalimskyPreCell &other) const
 
bool operator< (const SignedKhalimskyPreCell &other) const
 
std::string className () const
 

Data Fields

Point coordinates
 
bool positive
 

Detailed Description

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

Represents a signed cell in an unbounded cellular grid space by its Khalimsky coordinates and a boolean value.

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

Definition at line 169 of file KhalimskyPreSpaceND.h.

Member Typedef Documentation

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::CellularGridSpace = PreCellularGridSpace

Definition at line 183 of file KhalimskyPreSpaceND.h.

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

Definition at line 177 of file KhalimskyPreSpaceND.h.

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

Definition at line 179 of file KhalimskyPreSpaceND.h.

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

Definition at line 182 of file KhalimskyPreSpaceND.h.

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

Definition at line 180 of file KhalimskyPreSpaceND.h.

template<Dimension dim, typename TInteger = DGtal::int32_t>
using DGtal::SignedKhalimskyPreCell< dim, TInteger >::SPreCell = Self

Definition at line 181 of file KhalimskyPreSpaceND.h.

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

Definition at line 178 of file KhalimskyPreSpaceND.h.

Constructor & Destructor Documentation

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

Default constructor.

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::SignedKhalimskyPreCell< dim, TInteger >::SignedKhalimskyPreCell ( Point const &  aPoint,
bool  positive 
)

Implicit constructor from its Khalimsky coordinates.

Parameters
aPointIts Khalimsky coordinates as a point.
positiveif cell has positive sign.
template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::SignedKhalimskyPreCell< dim, TInteger >::SignedKhalimskyPreCell ( SignedKhalimskyPreCell< dim, TInteger > const &  aCell)
default

Copy constructor.

Parameters
aCellany other pre-cell.
template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::SignedKhalimskyPreCell< dim, TInteger >::SignedKhalimskyPreCell ( SignedKhalimskyPreCell< dim, TInteger > &&  aCell)
default

Move constructor.

Parameters
aCellany other pre-cell.

Member Function Documentation

template<Dimension dim, typename TInteger = DGtal::int32_t>
DGtal::SignedKhalimskyPreCell< dim, TInteger >::BOOST_CONCEPT_ASSERT ( (concepts::CInteger< TInteger >)  )
template<Dimension dim, typename TInteger = DGtal::int32_t>
std::string DGtal::SignedKhalimskyPreCell< dim, TInteger >::className ( ) const
Returns
the style name used for drawing this object.
template<Dimension dim, typename TInteger = DGtal::int32_t>
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator!= ( const SignedKhalimskyPreCell< dim, TInteger > &  other) const

Difference operator.

Parameters
otherany other pre-cell.
template<Dimension dim, typename TInteger = DGtal::int32_t>
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator< ( const SignedKhalimskyPreCell< dim, TInteger > &  other) const

Inferior operator. (lexicographic order).

Parameters
otherany other pre-cell.
template<Dimension dim, typename TInteger = DGtal::int32_t>
SignedKhalimskyPreCell& DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator= ( SignedKhalimskyPreCell< dim, TInteger > const &  aCell)
default

Copy operator

Parameters
aCellany other pre-cell.
template<Dimension dim, typename TInteger = DGtal::int32_t>
SignedKhalimskyPreCell& DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator= ( SignedKhalimskyPreCell< dim, TInteger > &&  aCell)
default

Move operator

Parameters
aCellany other pre-cell.
template<Dimension dim, typename TInteger = DGtal::int32_t>
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::operator== ( const SignedKhalimskyPreCell< dim, TInteger > &  other) const

Equality operator.

Parameters
otherany other pre-cell.
template<Dimension dim, typename TInteger = DGtal::int32_t>
SPreCell const& DGtal::SignedKhalimskyPreCell< dim, TInteger >::preCell ( ) const

Returns the underlying constant pre-cell, itself in fact.

Field Documentation

template<Dimension dim, typename TInteger = DGtal::int32_t>
Point DGtal::SignedKhalimskyPreCell< dim, TInteger >::coordinates

Khalimsky coordinates of the cell.

Definition at line 187 of file KhalimskyPreSpaceND.h.

template<Dimension dim, typename TInteger = DGtal::int32_t>
bool DGtal::SignedKhalimskyPreCell< dim, TInteger >::positive

Cell sign.

Definition at line 188 of file KhalimskyPreSpaceND.h.


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