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>
100 void increment( UnsignedInteger & i )
const;
106 void decrement( UnsignedInteger & i )
const;
112 UnsignedInteger
next( UnsignedIntegerParamType i )
const;
118 UnsignedInteger
previous( UnsignedIntegerParamType i )
const;
125 UnsignedInteger
cast( IntegerParamType i )
const;
135 bool less( UnsignedIntegerParamType i, UnsignedIntegerParamType j )
const;
144 UnsignedInteger
posDiff( UnsignedIntegerParamType j, UnsignedIntegerParamType i )
const;
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) NumberTraits< Integer >::ParamType IntegerParamType
boost::call_traits< T >::param_type ParamType
NumberTraits< UnsignedInteger >::ParamType UnsignedIntegerParamType
ModuloComputer & operator=(const ModuloComputer &other)
Aim: Concept checking for Integer Numbers. More precisely, this concept is a refinement of both CEucl...
UnsignedInteger cast(IntegerParamType i) const
void increment(UnsignedInteger &i) const
void decrement(UnsignedInteger &i) const
UnsignedInteger posDiff(UnsignedIntegerParamType j, UnsignedIntegerParamType i) const
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: The traits class for all models of Cinteger.
UnsignedInteger next(UnsignedIntegerParamType i) const
implements basic functions on modular arithmetic.
bool less(UnsignedIntegerParamType i, UnsignedIntegerParamType j) const
DGtal is the top-level namespace which contains all DGtal functions and types.
void selfDisplay(std::ostream &out) const
UnsignedInteger previous(UnsignedIntegerParamType i) const
BOOST_CONCEPT_ASSERT((concepts::CInteger< Integer >))
NumberTraits< TInteger >::UnsignedVersion UnsignedInteger