DGtal  1.1.0
CEuclideanRing.h
1
17 #pragma once
18
29 #if defined(CEuclideanRing_RECURSES)
30 #error Recursive header files inclusion detected in CEuclideanRing.h
31 #else // defined(CEuclideanRing_RECURSES)
32
33 #define CEuclideanRing_RECURSES
34
35 #if !defined CEuclideanRing_h
36
37 #define CEuclideanRing_h
38
40 // Inclusions
41 #include <iostream>
42 #include "DGtal/base/Common.h"
43 #include "DGtal/kernel/CCommutativeRing.h"
45
46 namespace DGtal
47 {
48  namespace concepts
49  {
51  // class CEuclideanRing
86  template <typename T>
88  {
89  // ----------------------- Concept checks ------------------------------
90  public:
91
93  {
94  ConceptUtils::sameType( c, T( a/b ) );
95  }
96  // ------------------------- Internals ------------------------------------
97  private:
98  T a,b,c;
99
100  };
101  }
102 } // namespace DGtal
103
104
105 // //
107
108 #endif // !defined CEuclideanRing_h
109
110 #undef CEuclideanRing_RECURSES
111 #endif // else defined(CEuclideanRing_RECURSES)
DGtal::concepts::CEuclideanRing::b
T b
Definition: CEuclideanRing.h:98
DGtal::concepts::CCommutativeRing
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.
Definition: CCommutativeRing.h:101
DGtal::concepts::CEuclideanRing::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CEuclideanRing)
Definition: CEuclideanRing.h:92
DGtal::concepts::CEuclideanRing::a
T a
Definition: CEuclideanRing.h:98
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::concepts::CEuclideanRing
Aim: Defines the mathematical concept equivalent to a unitary commutative ring with a division operat...
Definition: CEuclideanRing.h:88
DGtal::concepts::CEuclideanRing::c
T c
Definition: CEuclideanRing.h:98
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117