31 #if defined(ModuloComputer_RECURSES)
32 #error Recursive header files inclusion detected in ModuloComputer.h
33 #else // defined(ModuloComputer_RECURSES)
35 #define ModuloComputer_RECURSES
37 #if !defined ModuloComputer_h
39 #define ModuloComputer_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/kernel/NumberTraits.h"
46 #include "DGtal/kernel/CInteger.h"
78 template <
typename TInteger>
204 template <
typename T>
209 object.selfDisplay( out );
218 #include "DGtal/arithmetic/ModuloComputer.ih"
223 #endif // !defined ModuloComputer_h
225 #undef ModuloComputer_RECURSES
226 #endif // else defined(ModuloComputer_RECURSES)
BOOST_CONCEPT_ASSERT((concepts::CInteger< Integer >))
NumberTraits< Integer >::ParamType IntegerParamType
Cell uCell(const PreCell &c) const
From an unsigned cell, returns an unsigned cell lying into this Khalismky space.
Aim: Concept checking for Integer Numbers. More precisely, this concept is a refinement of both CEucl...
static void initFromBelsRange(const KSpace &aK, const TIteratorOnBels &itb, const TIteratorOnBels &ite, Image &aImg, AcceptedPointSet &aSet, const Value &aValue, bool aFlagIsPositive=true)
void insert(VContainer1 &c1, LContainer2 &c2, unsigned int idx, double v)
Aim: The traits class for all models of Cinteger.
bool init(const Point &lower, const Point &upper, bool isClosed)
Specifies the upper and lower bounds for the maximal cells in this space.
SCell sCell(const SPreCell &c) const
From a signed cell, returns a signed cell lying into this Khalismky space.
NumberTraits< UnsignedInteger >::ParamType UnsignedIntegerParamType
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
UnsignedInteger posDiff(UnsignedIntegerParamType j, UnsignedIntegerParamType i) const
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: This class is a model of CPreCellularGridSpaceND. It represents the cubical grid as a cell compl...
static void initFromPointsRange(const TIteratorOnPoints &itb, const TIteratorOnPoints &ite, Image &aImg, AcceptedPointSet &aSet, const Value &aValue)
DGtal is the top-level namespace which contains all DGtal functions and types.
ModuloComputer & operator=(const ModuloComputer &other)
static void initFromIncidentPointsRange(const TIteratorOnPairs &itb, const TIteratorOnPairs &ite, Image &aImg, AcceptedPointSet &aSet, const Value &aValue, bool aFlagIsPositive=true)
UnsignedInteger cast(IntegerParamType i) const
bool less(UnsignedIntegerParamType i, UnsignedIntegerParamType j) const
void decrement(UnsignedInteger &i) const
UnsignedInteger next(UnsignedIntegerParamType i) const
void increment(UnsignedInteger &i) const
KhalimskyPreSpaceND< 2, Integer > KPreSpace
void selfDisplay(std::ostream &out) const
implements basic functions on modular arithmetic.
boost::call_traits< std::decay< T >::type >::param_type ParamType
Defines a type that represents the "best" way to pass a parameter of type T to a function.
NumberTraits< TInteger >::UnsignedVersion UnsignedInteger
UnsignedInteger previous(UnsignedIntegerParamType i) const
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex,...