DGtal
1.1.0
src
DGtal
geometry
curves
CDynamicSegmentComputer.h
1
17
#pragma once
18
31
#if defined(CDynamicSegmentComputer_RECURSES)
32
#error Recursive header files inclusion detected in CDynamicSegmentComputer.h
33
#else // defined(CDynamicSegmentComputer_RECURSES)
34
35
#define CDynamicSegmentComputer_RECURSES
36
37
#if !defined CDynamicSegmentComputer_h
38
39
#define CDynamicSegmentComputer_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/geometry/curves/CForwardSegmentComputer.h"
47
48
namespace
DGtal
49
{
50
namespace
concepts
51
{
53
// class CDynamicSegmentComputer
87
template
<
typename
T>
88
struct
CDynamicSegmentComputer
:
concepts::CForwardSegmentComputer
<T>
89
{
90
// ----------------------- Concept checks ------------------------------
91
public
:
92
// Methods
93
BOOST_CONCEPT_USAGE
(
CDynamicSegmentComputer
)
94
{
95
concepts::ConceptUtils::sameType
(
myB
,
myX
.retractBack() );
96
}
97
// ------------------------- Private Datas --------------------------------
98
private
:
99
T
myX
;
// only if T is default constructible.
100
bool
myB
;
101
102
// ------------------------- Internals ------------------------------------
103
private
:
104
105
};
// end of concept CDynamicSegmentComputer
106
}
107
}
// namespace DGtal
108
109
// //
111
112
#endif // !defined CDynamicSegmentComputer_h
113
114
#undef CDynamicSegmentComputer_RECURSES
115
#endif // else defined(CDynamicSegmentComputer_RECURSES)
DGtal::concepts::CDynamicSegmentComputer
Aim: Defines the concept describing a dynamic segment computer, ie. a model of CSegment that can ex...
Definition:
CDynamicSegmentComputer.h:89
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition:
ClosedIntegerHalfPlane.h:49
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition:
ConceptUtils.h:117
DGtal::concepts::CDynamicSegmentComputer::myB
bool myB
Definition:
CDynamicSegmentComputer.h:100
DGtal::concepts::CForwardSegmentComputer
Aim: Defines the concept describing a forward segment computer. Like any model of CIncrementalSegment...
Definition:
CForwardSegmentComputer.h:102
DGtal::concepts::CDynamicSegmentComputer::myX
T myX
Definition:
CDynamicSegmentComputer.h:99
DGtal::concepts::CDynamicSegmentComputer::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDynamicSegmentComputer)
Definition:
CDynamicSegmentComputer.h:93
Generated on Fri Oct 9 2020 08:57:46 for DGtal by
1.8.20