DGtal
1.3.beta
src
DGtal
shapes
implicit
CImplicitFunction.h
1
17
#pragma once
18
31
#if defined(CImplicitFunction_RECURSES)
32
#error Recursive header files inclusion detected in CImplicitFunction.h
33
#else // defined(CImplicitFunction_RECURSES)
34
35
#define CImplicitFunction_RECURSES
36
37
#if !defined CImplicitFunction_h
38
39
#define CImplicitFunction_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
46
47
namespace
DGtal
48
{
49
namespace
concepts
50
{
52
// class CImplicitFunction
88
template
<
typename
T>
89
struct
CImplicitFunction
90
{
91
// ----------------------- Concept checks ------------------------------
92
public
:
93
// 1. define first provided types (i.e. inner types), like
94
typedef
typename
T::RealPoint
RealPoint
;
95
typedef
typename
T::Value
Value
;
96
// possibly check these types so as to satisfy a concept with
97
BOOST_CONCEPT_ASSERT
((
boost::UnaryFunction< T, Value, RealPoint >
));
98
99
};
// end of concept CImplicitFunction
100
}
101
}
// namespace DGtal
102
103
// //
105
106
#endif // !defined CImplicitFunction_h
107
108
#undef CImplicitFunction_RECURSES
109
#endif // else defined(CImplicitFunction_RECURSES)
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
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::CImplicitFunction::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((boost::UnaryFunction< T, Value, RealPoint >))
boost::UnaryFunction
Go to http://www.sgi.com/tech/stl/UnaryFunction.html.
Definition:
Boost.dox:73
DGtal::concepts::CImplicitFunction::Value
T::Value Value
Definition:
CImplicitFunction.h:95
DGtal::concepts::CImplicitFunction::RealPoint
T::RealPoint RealPoint
Definition:
CImplicitFunction.h:94
RealPoint
Z2i::RealPoint RealPoint
Definition:
testAstroid2D.cpp:46
Value
double Value
Definition:
testSimpleRandomAccessRangeFromPoint.cpp:38
Generated on Thu May 19 2022 18:08:05 for DGtal by
1.8.17