DGtal
1.3.beta
src
DGtal
topology
CCellFunctor.h
1
17
#pragma once
18
33
#if defined(CCellFunctor_RECURSES)
34
#error Recursive header files inclusion detected in CCellFunctor.h
35
#else // defined(CCellFunctor_RECURSES)
36
37
#define CCellFunctor_RECURSES
38
39
#if !defined CCellFunctor_h
40
41
#define CCellFunctor_h
42
44
// Inclusions
45
#include <iostream>
46
#include "DGtal/base/Common.h"
47
#include "DGtal/base/CUnaryFunctor.h"
49
50
// @since 0.8 In DGtal::concepts (and in DGtal/topology)
51
namespace
DGtal
{
52
namespace
concepts {
53
55
// class CCellFunctor
88
template
<
typename
T>
89
struct
CCellFunctor
90
{
91
// ----------------------- Concept checks ------------------------------
92
public
:
93
typedef
typename
T::Cell
Cell
;
94
typedef
typename
T::Quantity
Quantity
;
95
96
BOOST_CONCEPT_ASSERT
((
CUnaryFunctor<T,Cell,Quantity>
));
97
98
BOOST_CONCEPT_USAGE
(
CCellFunctor
)
99
{
100
check_const_constraints
();
101
}
102
void
check_const_constraints
()
const
103
{
104
}
105
106
// ------------------------- Private Datas --------------------------------
107
private
:
108
// ------------------------- Internals ------------------------------------
109
private
:
110
T
myT
;
111
};
// end of concept CCellFunctor
112
}
113
}
// namespace DGtal
114
115
// //
117
118
#endif // !defined CCellFunctor_h
119
120
#undef CCellFunctor_RECURSES
121
#endif // else defined(CCellFunctor_RECURSES)
DGtal::concepts::CCellFunctor::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CCellFunctor)
Definition:
CCellFunctor.h:98
DGtal::concepts::CCellFunctor::Cell
T::Cell Cell
Definition:
CCellFunctor.h:93
DGtal::concepts::CCellFunctor
Aim: Defines a functor on cells.
Definition:
CCellFunctor.h:89
DGtal::concepts::CCellFunctor::check_const_constraints
void check_const_constraints() const
Definition:
CCellFunctor.h:102
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CCellFunctor::Quantity
T::Quantity Quantity
Definition:
CCellFunctor.h:94
DGtal::concepts::CCellFunctor::myT
T myT
Definition:
CCellFunctor.h:110
DGtal::concepts::CCellFunctor::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CUnaryFunctor< T, Cell, Quantity >))
Cell
KSpace::Cell Cell
Definition:
testCubicalComplex.cpp:56
DGtal::concepts::CUnaryFunctor
Aim: Defines a unary functor, which associates arguments to results.
Definition:
CUnaryFunctor.h:89
Generated on Mon Jun 20 2022 18:23:22 for DGtal by
1.8.17