31 #if defined(ArithmeticalDSLKernel_RECURSES) 32 #error Recursive header files inclusion detected in ArithmeticalDSLKernel.h 33 #else // defined(ArithmeticalDSLKernel_RECURSES) 35 #define ArithmeticalDSLKernel_RECURSES 37 #if !defined ArithmeticalDSLKernel_h 39 #define ArithmeticalDSLKernel_h 44 #include "DGtal/base/Common.h" 46 #include "DGtal/kernel/SpaceND.h" 47 #include "DGtal/kernel/NumberTraits.h" 89 template <
typename TCoordinate,
90 unsigned short adjacency = 8>
107 typedef std::pair<Vector, Vector>
Steps;
142 template <
typename TInteger>
143 static Vector shift(
const TInteger& a,
const TInteger& b);
169 template <
typename TInteger>
170 static Steps steps(
const TInteger& a,
const TInteger& b);
182 template<
typename TInteger>
183 static TInteger
norm(
const TInteger& a,
const TInteger& b);
189 template <
typename TCoordinate>
196 typedef std::pair<Vector, Vector>
Steps;
213 template <
typename TInteger>
214 static Vector shift(
const TInteger& a,
const TInteger& b);
215 template <
typename TInteger>
216 static Steps steps(
const TInteger& a,
const TInteger& b);
217 template<
typename TInteger>
218 static TInteger
norm(
const TInteger& a,
const TInteger& b);
227 #include "DGtal/geometry/curves/ArithmeticalDSLKernel.ih" 232 #endif // !defined ArithmeticalDSLKernel_h 234 #undef ArithmeticalDSLKernel_RECURSES 235 #endif // else defined(ArithmeticalDSLKernel_RECURSES)
std::pair< Vector, Vector > Steps
static Vector shift(const TInteger &a, const TInteger &b)
Aim: SpaceND is a utility class that defines the fundamental structure of a Digital Space in ND...
static TInteger norm(const TInteger &a, const TInteger &b)
SpaceND< 2, TCoordinate > Space
SpaceND< 2, TCoordinate > Space
BOOST_STATIC_CONSTANT(unsigned short, ForegroundAdjacency=8)
Aim: Small class that contains the code that depends on the arithmetical thickness (either naive or s...
DGtal is the top-level namespace which contains all DGtal functions and types.
std::pair< Vector, Vector > Steps
static Steps steps(const TInteger &a, const TInteger &b)