DGtal  0.9.2
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)
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.
Aim: Defines the mathematical concept equivalent to a unitary commutative ring with a division operat...
void sameType(const T &t1, const T &t2)
DGtal is the top-level namespace which contains all DGtal functions and types.