DGtal
1.3.beta
src
DGtal
shapes
implicit
CImplicitFunctionDiff1.h
1
17
#pragma once
18
31
#if defined(CImplicitFunctionDiff1_RECURSES)
32
#error Recursive header files inclusion detected in CImplicitFunctionDiff1.h
33
#else // defined(CImplicitFunctionDiff1_RECURSES)
34
35
#define CImplicitFunctionDiff1_RECURSES
36
37
#if !defined CImplicitFunctionDiff1_h
38
39
#define CImplicitFunctionDiff1_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/shapes/implicit/CImplicitFunction.h"
47
48
namespace
DGtal
49
{
50
namespace
concepts
51
{
53
// class CImplicitFunctionDiff1
91
template
<
typename
T>
92
struct
CImplicitFunctionDiff1
:
CImplicitFunction
<T>
93
{
94
// ----------------------- Concept checks ------------------------------
95
public
:
96
// 1. define first provided types (i.e. inner types), like
97
typedef
typename
T::RealPoint
RealPoint
;
98
typedef
typename
T::RealVector
RealVector
;
99
100
BOOST_CONCEPT_USAGE
(
CImplicitFunctionDiff1
)
101
{
102
// check const methods.
103
checkConstConstraints
();
104
}
105
void
checkConstConstraints
()
const
106
{
107
// const method dummyConst should take parameter myA of type A and return
108
// something of type B
109
ConceptUtils::sameType
(
myB
,
myX
.gradient(
myA
) );
110
}
111
// ------------------------- Private Datas --------------------------------
112
private
:
113
T
myX
;
// do not require T to be default constructible.
114
RealPoint
myA
;
115
RealVector
myB
;
116
117
};
// end of concept CImplicitFunctionDiff1
118
}
119
}
// namespace DGtal
120
121
// //
123
124
#endif // !defined CImplicitFunctionDiff1_h
125
126
#undef CImplicitFunctionDiff1_RECURSES
127
#endif // else defined(CImplicitFunctionDiff1_RECURSES)
DGtal::concepts::CImplicitFunctionDiff1
Aim: Describes a 1-differentiable function of the form f(x), where x is some real point in the given ...
Definition:
CImplicitFunctionDiff1.h:92
DGtal::concepts::CImplicitFunctionDiff1::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CImplicitFunctionDiff1)
Definition:
CImplicitFunctionDiff1.h:100
DGtal::concepts::CImplicitFunctionDiff1::myX
T myX
Definition:
CImplicitFunctionDiff1.h:113
DGtal::concepts::CImplicitFunctionDiff1::myB
RealVector myB
Definition:
CImplicitFunctionDiff1.h:115
DGtal::concepts::CImplicitFunctionDiff1::RealPoint
T::RealPoint RealPoint
Definition:
CImplicitFunctionDiff1.h:97
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CImplicitFunctionDiff1::RealVector
T::RealVector RealVector
Definition:
CImplicitFunctionDiff1.h:98
DGtal::concepts::CImplicitFunction
Aim: Describes any function of the form f(x), where x is some real point in the given space,...
Definition:
CImplicitFunction.h:89
DGtal::concepts::CImplicitFunctionDiff1::checkConstConstraints
void checkConstConstraints() const
Definition:
CImplicitFunctionDiff1.h:105
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition:
ConceptUtils.h:117
RealVector
Space::RealVector RealVector
Definition:
fullConvexitySphereGeodesics.cpp:113
DGtal::concepts::CImplicitFunctionDiff1::myA
RealPoint myA
Definition:
CImplicitFunctionDiff1.h:114
DGtal::concepts::CImplicitFunction::RealPoint
T::RealPoint RealPoint
Definition:
CImplicitFunction.h:94
RealPoint
Z2i::RealPoint RealPoint
Definition:
testAstroid2D.cpp:46
Generated on Mon Jun 20 2022 18:23:25 for DGtal by
1.8.17