DGtal
1.4.0
Loading...
Searching...
No Matches
CTrivialConstImage.h
1
17
#pragma once
18
28
#if defined(CTrivialConstImageRECURSES)
29
#error Recursive header files inclusion detected in CTrivialConstImage.h
30
#else
// defined(CTrivialConstImageRECURSES)
32
#define CTrivialConstImageRECURSES
33
34
#if !defined CTrivialConstImage_h
36
#define CTrivialConstImage_h
37
38
#include <boost/concept_check.hpp>
39
#include <boost/concept/assert.hpp>
40
#include <boost/concept/requires.hpp>
41
42
#include "DGtal/kernel/CPointFunctor.h"
43
#include "DGtal/kernel/domains/CDomain.h"
44
#include "DGtal/base/CLabel.h"
45
46
namespace
DGtal
47
{
48
namespace
concepts
49
{
51
// struct CTrivialConstImage
87
template
<
typename
I>
88
struct
CTrivialConstImage
:
concepts::CPointFunctor
<I>
89
{
90
91
public
:
92
93
BOOST_CONCEPT_ASSERT
((
CLabel<typename I::Value>
));
94
//Inner types
95
typedef
typename
I::Domain
Domain
;
96
BOOST_CONCEPT_ASSERT
((
concepts::CDomain<Domain>
));
97
98
99
BOOST_CONCEPT_USAGE
(
CTrivialConstImage
)
100
{
101
ConceptUtils::sameType
(
i
.domain(),
d
);
102
}
103
104
private
:
105
I
i
;
106
Domain
d
;
107
108
};
109
}
110
}
// namespace DGtal
111
112
// //
114
115
#endif
// !defined CTrivialConstImage_h
116
117
#undef CTrivialConstImageRECURSES
118
#endif
// else defined(CTrivialConstImageRECURSES)
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition
ConceptUtils.h:117
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CDomain
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
Definition
CDomain.h:130
DGtal::concepts::CLabel
Aim: Define the concept of DGtal labels. Models of CLabel can be default-constructible,...
Definition
CLabel.h:93
DGtal::concepts::CPointFunctor
Aim: Defines a functor on points.
Definition
CPointFunctor.h:89
DGtal::concepts::CTrivialConstImage
Aim: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.
Definition
CTrivialConstImage.h:89
DGtal::concepts::CTrivialConstImage::Domain
I::Domain Domain
Definition
CTrivialConstImage.h:95
DGtal::concepts::CTrivialConstImage::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CTrivialConstImage)
Definition
CTrivialConstImage.h:99
DGtal::concepts::CTrivialConstImage::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CDomain< Domain >))
DGtal::concepts::CTrivialConstImage::d
Domain d
Definition
CTrivialConstImage.h:106
DGtal::concepts::CTrivialConstImage::i
I i
Definition
CTrivialConstImage.h:105
DGtal::concepts::CTrivialConstImage::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((CLabel< typename I::Value >))
src
DGtal
images
CTrivialConstImage.h
Generated on Mon Jun 10 2024 17:36:00 for DGtal by
1.11.0