Loading [MathJax]/extensions/TeX/AMSsymbols.js
DGtal
1.4.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
Variables
a
d
e
f
h
i
l
n
o
p
t
w
x
Typedefs
a
b
c
d
e
i
k
l
n
o
p
r
s
u
v
z
Enumerations
Enumerator
a
b
c
d
e
g
h
i
j
l
m
n
o
p
s
t
u
v
w
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
c
e
f
h
i
l
m
n
o
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
l
m
o
p
r
s
t
u
v
x
y
z
Related Symbols
a
b
c
d
e
f
g
i
k
l
m
o
p
s
t
u
Examples
►
DGtal
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
ExpressionTemplates.h
1
17
#pragma once
18
31
#if defined(ExpressionTemplates_RECURSES)
32
#error Recursive header files inclusion detected in ExpressionTemplates.h
33
#else
// defined(ExpressionTemplates_RECURSES)
35
#define ExpressionTemplates_RECURSES
36
37
#if !defined ExpressionTemplates_h
39
#define ExpressionTemplates_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
46
47
namespace
DGtal
48
{
49
53
template
<
int
X,
unsigned
exponent>
class
POW
54
{
55
public
:
enum
{
VALUE
= X*
POW
<X, exponent-1>
::VALUE
};
56
};
53
template
<
int
X,
unsigned
exponent>
class
POW
{
…
};
57
template
<
int
X >
class
POW
<X, 1>
58
{
59
public
:
enum
{
VALUE
= X };
60
};
57
template
<
int
X >
class
POW
<X, 1> {
…
};
61
template
<
int
X >
class
POW
<X, 0>
62
{
63
public
:
enum
{
VALUE
= 1 };
64
};
61
template
<
int
X >
class
POW
<X, 0> {
…
};
65
69
template
<
int
X>
70
class
LOG2
71
{
72
public
:
enum
{
VALUE
= 1 +
LOG2
<X / 2>
::VALUE
};
73
};
70
class
LOG2
{
…
};
74
template
<>
class
LOG2
<2>
75
{
76
public
:
enum
{
VALUE
= 1 };
77
};
74
template
<>
class
LOG2
<2> {
…
};
78
template
<>
class
LOG2
<1>
79
{
80
public
:
enum
{
VALUE
= 0 };
81
};}
// namespace DGtal
78
template
<>
class
LOG2
<1> {
…
};
82
83
84
// //
86
87
#endif
// !defined ExpressionTemplates_h
88
89
#undef ExpressionTemplates_RECURSES
90
#endif
// else defined(ExpressionTemplates_RECURSES)
DGtal::LOG2
Definition
ExpressionTemplates.h:71
DGtal::LOG2::VALUE
@ VALUE
Definition
ExpressionTemplates.h:72
DGtal::POW
Definition
ExpressionTemplates.h:54
DGtal::POW::VALUE
@ VALUE
Definition
ExpressionTemplates.h:55
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
src
DGtal
base
ExpressionTemplates.h
Generated on Mon Jun 10 2024 17:35:51 for DGtal by
1.11.0