DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CDomainArchetype.h
1
16
17
#pragma once
18
19
#ifndef _MSC_VER
20
#pragma GCC diagnostic ignored "-Wunused-parameter"
21
#endif
22
23
35
36
#if defined(CDomainArchetype_RECURSES)
37
#error Recursive header files inclusion detected in CDomainArchetype.h
38
#else
// defined(CDomainArchetype_RECURSES)
40
#define CDomainArchetype_RECURSES
41
42
#if !defined CDomainArchetype_h
44
#define CDomainArchetype_h
45
47
// Inclusions
48
#include <iostream>
49
#include <set>
50
#include <string>
51
#include "DGtal/base/Common.h"
52
#include "DGtal/kernel/domains/CDomain.h"
54
55
namespace
DGtal
56
{
57
namespace
concepts
58
{
60
// template class CDomainArchetype
70
template
<
typename
TSpace>
71
class
CDomainArchetype
72
{
73
public
:
74
75
// ----------------------- associated types -------------------------------
76
public
:
77
typedef
CDomainArchetype<TSpace>
Domain
;
78
typedef
TSpace
Space
;
79
typedef
typename
Space::Integer
Integer
;
80
typedef
typename
Space::Point
Point
;
81
typedef
typename
Space::Vector
Vector
;
82
typedef
typename
Space::Size
Size
;
83
typedef
typename
Space::Dimension
Dimension
;
84
typedef
CConstBidirectionalIteratorArchetype<Point>
ConstIterator
;
88
typedef
int
Predicate
;
92
typedef
int
DigitalSet
;
93
94
// ----------------------- Standard services ------------------------------
95
public
:
96
100
~CDomainArchetype
() {}
101
106
CDomainArchetype
(
const
DigitalSet
& aSet ) {}
107
108
113
CDomainArchetype
(
const
CDomainArchetype
& other ) {}
114
115
// ----------------------- Domain services --------------------------------
116
public
:
117
121
ConstIterator
begin
(
const
Point
&
aPoint
)
const
122
{
return
DummyObject<ConstIterator>::get
(); }
123
127
ConstIterator
begin
()
const
128
{
return
DummyObject<ConstIterator>::get
(); }
129
133
ConstIterator
end
()
const
134
{
return
DummyObject<ConstIterator>::get
(); }
135
140
const
Point
&
lowerBound
()
const
141
{
return
DummyObject<Point>::get
(); }
142
147
const
Point
&
upperBound
()
const
148
{
return
DummyObject<Point>::get
(); }
149
154
Size
size
()
const
155
{
return
DummyObject<Size>::get
(); }
156
161
bool
isInside
(
const
Point
& p )
const
162
{
return
true
; }
163
164
168
const
Predicate
&
predicate
()
const
169
{
return
DummyObject<Predicate>::get
(); }
170
171
172
// ----------------------- Interface --------------------------------------
173
public
:
174
179
void
selfDisplay
( std::ostream & out )
const
{}
180
185
bool
isValid
()
const
{
return
true
; }
186
187
};
// end of class CDomainArchetype
188
}
189
}
// namespace DGtal
190
191
192
// //
194
195
#endif
// !defined CDomainArchetype_h
196
197
#undef CDomainArchetype_RECURSES
198
#endif
// else defined(CDomainArchetype_RECURSES)
DGtal::SpaceND< 3, Integer >::Integer
Integer Integer
Definition
SpaceND.h:102
DGtal::SpaceND< 3, Integer >::Point
PointVector< dim, Integer > Point
Definition
SpaceND.h:110
DGtal::SpaceND< 3, Integer >::Size
size_t Size
Definition
SpaceND.h:107
DGtal::SpaceND< 3, Integer >::Vector
PointVector< dim, Integer > Vector
Definition
SpaceND.h:113
DGtal::SpaceND< 3, Integer >::Dimension
DGtal::Dimension Dimension
Definition
SpaceND.h:129
DGtal::concepts::CDomainArchetype::end
ConstIterator end() const
Definition
CDomainArchetype.h:133
DGtal::concepts::CDomainArchetype::~CDomainArchetype
~CDomainArchetype()
Definition
CDomainArchetype.h:100
DGtal::concepts::CDomainArchetype::begin
ConstIterator begin() const
Definition
CDomainArchetype.h:127
DGtal::concepts::CDomainArchetype::Vector
Space::Vector Vector
Definition
CDomainArchetype.h:81
DGtal::concepts::CDomainArchetype::isInside
bool isInside(const Point &p) const
Definition
CDomainArchetype.h:161
DGtal::concepts::CDomainArchetype::CDomainArchetype
CDomainArchetype(const DigitalSet &aSet)
Definition
CDomainArchetype.h:106
DGtal::concepts::CDomainArchetype::Predicate
int Predicate
Definition
CDomainArchetype.h:88
DGtal::concepts::CDomainArchetype::begin
ConstIterator begin(const Point &aPoint) const
Definition
CDomainArchetype.h:121
DGtal::concepts::CDomainArchetype::CDomainArchetype
CDomainArchetype(const CDomainArchetype &other)
Definition
CDomainArchetype.h:113
DGtal::concepts::CDomainArchetype::selfDisplay
void selfDisplay(std::ostream &out) const
Definition
CDomainArchetype.h:179
DGtal::concepts::CDomainArchetype::Dimension
Space::Dimension Dimension
Definition
CDomainArchetype.h:83
DGtal::concepts::CDomainArchetype::Point
Space::Point Point
Definition
CDomainArchetype.h:80
DGtal::concepts::CDomainArchetype::Domain
CDomainArchetype< TSpace > Domain
Definition
CDomainArchetype.h:77
DGtal::concepts::CDomainArchetype::ConstIterator
CConstBidirectionalIteratorArchetype< Point > ConstIterator
Definition
CDomainArchetype.h:84
DGtal::concepts::CDomainArchetype::Space
TSpace Space
Definition
CDomainArchetype.h:78
DGtal::concepts::CDomainArchetype::DigitalSet
int DigitalSet
Definition
CDomainArchetype.h:92
DGtal::concepts::CDomainArchetype::isValid
bool isValid() const
Definition
CDomainArchetype.h:185
DGtal::concepts::CDomainArchetype::lowerBound
const Point & lowerBound() const
Definition
CDomainArchetype.h:140
DGtal::concepts::CDomainArchetype::predicate
const Predicate & predicate() const
Definition
CDomainArchetype.h:168
DGtal::concepts::CDomainArchetype::Integer
Space::Integer Integer
Definition
CDomainArchetype.h:79
DGtal::concepts::CDomainArchetype::size
Size size() const
Definition
CDomainArchetype.h:154
DGtal::concepts::CDomainArchetype::Size
Space::Size Size
Definition
CDomainArchetype.h:82
DGtal::concepts::CDomainArchetype::upperBound
const Point & upperBound() const
Definition
CDomainArchetype.h:147
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::CConstBidirectionalIteratorArchetype
An archetype of ConstBidirectionalIterator.
Definition
BasicArchetypes.h:81
DGtal::DummyObject
Definition
ConceptUtils.h:87
aPoint
const Point aPoint(3, 4)
src
DGtal
kernel
domains
CDomainArchetype.h
Generated on
for DGtal by
1.18.0