DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CCellFunctor.h
1
16
17
#pragma once
18
32
33
#if defined(CCellFunctor_RECURSES)
34
#error Recursive header files inclusion detected in CCellFunctor.h
35
#else
// defined(CCellFunctor_RECURSES)
37
#define CCellFunctor_RECURSES
38
39
#if !defined CCellFunctor_h
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 Data --------------------------------
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
Aim: Gathers several functions useful for concept checks.
Definition
CPositiveIrreducibleFraction.h:54
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CCellFunctor
Aim: Defines a functor on cells.
Definition
CCellFunctor.h:90
DGtal::concepts::CCellFunctor::Quantity
T::Quantity Quantity
Definition
CCellFunctor.h:94
DGtal::concepts::CCellFunctor::myT
T myT
Definition
CCellFunctor.h:110
DGtal::concepts::CCellFunctor::check_const_constraints
void check_const_constraints() const
Definition
CCellFunctor.h:102
DGtal::concepts::CCellFunctor::Cell
T::Cell Cell
Definition
CCellFunctor.h:93
DGtal::concepts::CCellFunctor::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CUnaryFunctor< T, Cell, Quantity >))
DGtal::concepts::CCellFunctor::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CCellFunctor)
Definition
CCellFunctor.h:98
DGtal::concepts::CUnaryFunctor
Aim: Defines a unary functor, which associates arguments to results.
Definition
CUnaryFunctor.h:90
src
DGtal
topology
CCellFunctor.h
Generated on
for DGtal by
1.18.0