Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Hierarchy
Class Members
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
f
k
l
m
n
o
p
r
s
t
v
z
Enumerator
_
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
Related Functions
:
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
v
Files
File List
File Members
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
x
z
Enumerations
Enumerator
b
c
e
f
g
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
gtsam
3rdparty
Eigen
test
SafeScalar.h
Go to the documentation of this file.
1
2
// A Scalar that asserts for uninitialized access.
3
template
<
typename
T>
4
class
SafeScalar
{
5
public
:
6
SafeScalar
() :
initialized_
(false) {}
7
SafeScalar
(
const
SafeScalar
&
other
) {
8
*
this
=
other
;
9
}
10
SafeScalar
&
operator=
(
const
SafeScalar
&
other
) {
11
val_
=
T
(
other
);
12
initialized_
=
true
;
13
return
*
this
;
14
}
15
16
SafeScalar
(
T
val) :
val_
(val),
initialized_
(true) {}
17
SafeScalar
&
operator=
(
T
val) {
18
val_
= val;
19
initialized_
=
true
;
20
}
21
22
operator
T
()
const
{
23
VERIFY
(
initialized_
&&
"Uninitialized access."
);
24
return
val_
;
25
}
26
27
private
:
28
T
val_
;
29
bool
initialized_
;
30
};
SafeScalar::val_
T val_
Definition:
SafeScalar.h:28
SafeScalar::operator=
SafeScalar & operator=(const SafeScalar &other)
Definition:
SafeScalar.h:10
T
Eigen::Triplet< double > T
Definition:
Tutorial_sparse_example.cpp:6
SafeScalar::SafeScalar
SafeScalar(const SafeScalar &other)
Definition:
SafeScalar.h:7
Eigen::Triplet< double >
SafeScalar
Definition:
SafeScalar.h:4
SafeScalar::SafeScalar
SafeScalar(T val)
Definition:
SafeScalar.h:16
SafeScalar::operator=
SafeScalar & operator=(T val)
Definition:
SafeScalar.h:17
SafeScalar::SafeScalar
SafeScalar()
Definition:
SafeScalar.h:6
SafeScalar::initialized_
bool initialized_
Definition:
SafeScalar.h:29
pybind_wrapper_test_script.other
other
Definition:
pybind_wrapper_test_script.py:42
VERIFY
#define VERIFY(a)
Definition:
main.h:380
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:03:21