DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
SpaceND.h
1
16
17
#pragma once
18
32
33
#if defined(SpaceND_RECURSES)
34
#error Recursive header files inclusion detected in SpaceND.h
35
#else
// defined(SpaceND_RECURSES)
37
#define SpaceND_RECURSES
38
39
#if !defined SpaceND_h
41
#define SpaceND_h
42
44
// Inclusions
45
#include <iostream>
46
#include "DGtal/base/Common.h"
47
#include "DGtal/kernel/CInteger.h"
48
#include "DGtal/kernel/PointVector.h"
50
51
namespace
DGtal
52
{
53
55
// class SpaceND
92
93
template
<
Dimension
dim
,
94
typename
TInteger =
DGtal::int32_t
>
95
class
SpaceND
96
{
97
//Integer must be a model of the concept CInteger.
98
BOOST_CONCEPT_ASSERT
((
concepts::CInteger<TInteger>
) );
99
100
public
:
102
typedef
TInteger
Integer
;
104
typedef
typename
NumberTraits<Integer>::UnsignedVersion
UnsignedInteger
;
105
107
typedef
size_t
Size
;
108
110
typedef
PointVector<dim,Integer>
Point
;
111
113
typedef
PointVector<dim,Integer>
Vector
;
114
117
typedef
PointVector<dim, double>
RealPoint
;
118
121
typedef
PointVector<dim, double>
RealVector
;
122
124
typedef
SpaceND<dim, Integer>
Space
;
126
typedef
Space
Self
;
127
129
typedef
DGtal::Dimension
Dimension
;
130
132
static
const
Dimension
dimension
=
dim
;
133
135
template
<Dimension codimension>
136
struct
Subcospace
137
{
138
typedef
SpaceND
<
dim
- codimension,
Integer
>
Type
;
139
};
140
142
template
<Dimension subdimension>
143
struct
Subspace
144
{
145
typedef
SpaceND<subdimension, Integer>
Type
;
146
};
147
148
149
// ----------------------- Standard services ------------------------------
150
public
:
151
152
// ----------------------- Interface --------------------------------------
153
public
:
154
159
static
void
selfDisplay
( std::ostream & out )
160
{
161
out <<
"[SpaceND dim="
<<
dimension
<<
" size of Integers="
<<
sizeof
(
Integer
) <<
" ]"
;
162
}
163
164
private
:
171
SpaceND
&
operator=
(
const
SpaceND
& other );
172
173
private
:
178
SpaceND
();
179
183
~SpaceND
();
184
185
186
// ------------------------- Internals ------------------------------------
187
private
:
188
189
};
// end of class SpaceND
190
191
// ///static constants to store the dimension.
192
// template < Dimension dim,
193
// typename TInteger >
194
// const Dimension SpaceND<dim, TInteger>::dimension = dim;
195
196
197
}
// namespace DGtal
198
199
200
// //
202
203
#endif
// !defined SpaceND_h
204
205
#undef SpaceND_RECURSES
206
#endif
// else defined(SpaceND_RECURSES)
DGtal::PointVector
Aim: Implements basic operations that will be used in Point and Vector classes.
Definition
PointVector.h:593
DGtal::Point::Self
Space Self
Definition
SpaceND.h:126
DGtal::Point::Integer
Integer Integer
Definition
SpaceND.h:102
DGtal::Point::Point
PointVector< dim, Integer > Point
Definition
SpaceND.h:110
DGtal::SpaceND::SpaceND
SpaceND()
DGtal::Point::UnsignedInteger
NumberTraits< Integer >::UnsignedVersion UnsignedInteger
Definition
SpaceND.h:104
DGtal::Point::Size
size_t Size
Definition
SpaceND.h:107
DGtal::SpaceND::~SpaceND
~SpaceND()
DGtal::Point::RealPoint
PointVector< dim, double > RealPoint
Definition
SpaceND.h:117
DGtal::SpaceND::operator=
SpaceND & operator=(const SpaceND &other)
DGtal::Point::Space
SpaceND< dim, Integer > Space
Definition
SpaceND.h:124
DGtal::Point::dimension
static const Dimension dimension
Definition
SpaceND.h:132
DGtal::Point::RealVector
PointVector< dim, double > RealVector
Definition
SpaceND.h:121
DGtal::Point::Vector
PointVector< dim, Integer > Vector
Definition
SpaceND.h:113
DGtal::Point::Dimension
DGtal::Dimension Dimension
Definition
SpaceND.h:129
DGtal::SpaceND::selfDisplay
static void selfDisplay(std::ostream &out)
Definition
SpaceND.h:159
DGtal::SpaceND::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CInteger< TInteger >))
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::int32_t
std::int32_t int32_t
signed 32-bit integer.
Definition
BasicTypes.h:71
DGtal::Dimension
DGtal::uint32_t Dimension
Definition
Common.h:119
DGtal::NumberTraitsImpl< std::decay< T >::type >::UnsignedVersion
T UnsignedVersion
Definition
NumberTraits.h:90
DGtal::SpaceND::Subcospace
Define the type of a sub co-Space.
Definition
SpaceND.h:137
DGtal::SpaceND::Subcospace::Type
SpaceND< dim - codimension, Integer > Type
Definition
SpaceND.h:138
DGtal::SpaceND::Subspace
Define the type of a subspace.
Definition
SpaceND.h:144
DGtal::SpaceND::Subspace::Type
SpaceND< subdimension, Integer > Type
Definition
SpaceND.h:145
DGtal::concepts::CInteger
Aim: Concept checking for Integer Numbers. More precisely, this concept is a refinement of both CEucl...
Definition
CInteger.h:88
dim
#define dim
Definition
testImageContainerByHashTree.cpp:40
src
DGtal
kernel
SpaceND.h
Generated on
for DGtal by
1.18.0