DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CEuclideanRing.h
1
16
17
#pragma once
18
28
29
#if defined(CEuclideanRing_RECURSES)
30
#error Recursive header files inclusion detected in CEuclideanRing.h
31
#else
// defined(CEuclideanRing_RECURSES)
33
#define CEuclideanRing_RECURSES
34
35
#if !defined CEuclideanRing_h
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>
87
struct
CEuclideanRing
:
CCommutativeRing
<T>
88
{
89
// ----------------------- Concept checks ------------------------------
90
public
:
91
92
BOOST_CONCEPT_USAGE
(
CEuclideanRing
)
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::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition
ConceptUtils.h:117
DGtal::concepts
Aim: Gathers several functions useful for concept checks.
Definition
CPositiveIrreducibleFraction.h:54
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CCommutativeRing
Aim: Defines the mathematical concept equivalent to a unitary commutative ring.
Definition
CCommutativeRing.h:101
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::CEuclideanRing::a
T a
Definition
CEuclideanRing.h:98
DGtal::concepts::CEuclideanRing::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CEuclideanRing)
Definition
CEuclideanRing.h:92
DGtal::concepts::CEuclideanRing::b
T b
Definition
CEuclideanRing.h:98
src
DGtal
kernel
CEuclideanRing.h
Generated on
for DGtal by
1.18.0