DGtal 1.3.0
Loading...
Searching...
No Matches
CCellEmbedder.h
1
17#pragma once
18
31#if defined(CCellEmbedder_RECURSES)
32#error Recursive header files inclusion detected in CCellEmbedder.h
33#else // defined(CCellEmbedder_RECURSES)
35#define CCellEmbedder_RECURSES
36
37#if !defined CCellEmbedder_h
39#define CCellEmbedder_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
45#include "DGtal/base/CUnaryFunctor.h"
46#include "DGtal/topology/CCellularGridSpaceND.h"
48
49// @since 0.8 In DGtal::concepts
50namespace DGtal {
51 namespace concepts {
52
54// class CCellEmbedder
95template <typename T>
96struct CCellEmbedder : CUnaryFunctor<T, typename T::Cell, typename T::RealPoint>
97{
98 // ----------------------- Concept checks ------------------------------
99public:
100 typedef typename T::KSpace KSpace;
101 typedef typename T::Cell Cell;
102 typedef typename T::RealPoint RealPoint;
103 typedef typename T::Argument Argument;
104 typedef typename T::Value Value;
105
111 {
113 }
114
116 { // operator()
118 }
119 // ------------------------- Private Datas --------------------------------
120private:
121 T myX; // do not require T to be default constructible.
124
125 // ------------------------- Internals ------------------------------------
126private:
127
128}; // end of concept CCellEmbedder
129
130} // namespace concepts
131} // namespace DGtal
132
133// //
135
136#endif // !defined CCellEmbedder_h
137
138#undef CCellEmbedder_RECURSES
139#endif // else defined(CCellEmbedder_RECURSES)
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: A cell embedder is a mapping from unsigned cells to Euclidean points. It adds inner types to fun...
Definition: CCellEmbedder.h:97
BOOST_CONCEPT_ASSERT((CCellularGridSpaceND< KSpace >))
BOOST_STATIC_ASSERT((ConceptUtils::SameType< Cell, typename KSpace::Cell >::value))
BOOST_STATIC_ASSERT((ConceptUtils::SameType< RealPoint, Value >::value))
BOOST_STATIC_ASSERT((ConceptUtils::SameType< Cell, Argument >::value))
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
Aim: Defines a unary functor, which associates arguments to results.
Definition: CUnaryFunctor.h:90