DGtal 1.4.0
Loading...
Searching...
No Matches
CAdditivePrimitiveComputer.h
1
17#pragma once
18
31#if defined(CAdditivePrimitiveComputer_RECURSES)
32#error Recursive header files inclusion detected in CAdditivePrimitiveComputer.h
33#else // defined(CAdditivePrimitiveComputer_RECURSES)
35#define CAdditivePrimitiveComputer_RECURSES
36
37#if !defined CAdditivePrimitiveComputer_h
39#define CAdditivePrimitiveComputer_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
45#include "boost/concept_check.hpp"
46#include "DGtal/base/ConceptUtils.h"
47#include "DGtal/base/BasicArchetypes.h"
48#include "DGtal/geometry/surfaces/CIncrementalPrimitiveComputer.h"
50
51// @since 0.8 In DGtal::concepts
52namespace DGtal {
53 namespace concepts {
54
56 // class CAdditivePrimitiveComputer
98 template <typename T>
100 {
101 // ----------------------- Concept checks ------------------------------
102 public:
103 // Inner types
104 typedef typename T::Point Point; // already required in CIncrementalPrimitiveComputer
105 // Methods
112 {
113 ConceptUtils::sameType( myBool, myX.isExtendable( myIt, myIt ) );
114 }
115 // ------------------------- Private Datas --------------------------------
116 private:
117 T myX; // only if T is default constructible.
118 bool myBool;
120
121 // ------------------------- Internals ------------------------------------
122 private:
123
124 }; // end of concept CAdditivePrimitiveComputer
125
126} // namespace concepts
127} // namespace DGtal
128
129// //
131
132#endif // !defined CAdditivePrimitiveComputer_h
133
134#undef CAdditivePrimitiveComputer_RECURSES
135#endif // else defined(CAdditivePrimitiveComputer_RECURSES)
void sameType(const T &, const T &)
DGtal is the top-level namespace which contains all DGtal functions and types.
An archetype of ForwardIterator.
Aim: Defines the concept describing an object that computes some primitive from input points given gr...
Aim: Defines the concept describing an object that computes some primitive from input points given on...