DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CStaticVector.h
1
16
17
#pragma once
18
30
31
#if defined(CStaticVector_RECURSES)
32
#error Recursive header files inclusion detected in CStaticVector.h
33
#else
// defined(CStaticVector_RECURSES)
35
#define CStaticVector_RECURSES
36
37
#if !defined CStaticVector_h
39
#define CStaticVector_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/math/linalg/CVector.h"
47
48
namespace
DGtal
49
{
50
namespace
concepts
51
{
53
// class CStaticVector
89
template
<
typename
T>
90
struct
CStaticVector
:
CVector
<T>,
boost::DefaultConstructible
<T>
91
{
92
// ----------------------- Concept checks ------------------------------
93
public
:
94
typedef
typename
T::Index
Index
;
95
96
BOOST_CONCEPT_USAGE
(
CStaticVector
)
97
{
98
ConceptUtils::sameType
(
i
, T::dimension );
99
}
100
// ------------------------- Private Data --------------------------------
101
private
:
102
Index
i
;
103
104
// ------------------------- Internals ------------------------------------
105
private
:
106
107
};
// end of concept CStaticVector
108
}
109
}
// namespace DGtal
110
111
// //
113
114
#endif
// !defined CStaticVector_h
115
116
#undef CStaticVector_RECURSES
117
#endif
// else defined(CStaticVector_RECURSES)
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition
ConceptUtils.h:117
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::CStaticVector
Aim: Represent any static sized column vector having sparse or dense representation.
Definition
CStaticVector.h:91
DGtal::concepts::CStaticVector::Index
T::Index Index
Definition
CStaticVector.h:94
DGtal::concepts::CStaticVector::i
Index i
Definition
CStaticVector.h:102
DGtal::concepts::CStaticVector::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CStaticVector)
Definition
CStaticVector.h:96
DGtal::concepts::CVector
Aim: Represent any static or dynamic sized column vector having sparse or dense representation.
Definition
CVector.h:91
boost::DefaultConstructible
Go to http://www.sgi.com/tech/stl/DefaultConstructible.html.
Definition
Boost.dox:30
src
DGtal
math
linalg
CStaticVector.h
Generated on
for DGtal by
1.18.0