gtsam
symbolic
SymbolicBayesTree.h
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
3
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
4
* Atlanta, Georgia 30332-0415
5
* All Rights Reserved
6
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8
* See LICENSE for the license information
9
10
* -------------------------------------------------------------------------- */
11
19
#pragma once
20
21
#include <
gtsam/symbolic/SymbolicBayesNet.h
>
22
#include <
gtsam/symbolic/SymbolicFactorGraph.h
>
23
#include <
gtsam/inference/BayesTree.h
>
24
#include <
gtsam/inference/BayesTreeCliqueBase.h
>
25
26
namespace
gtsam
{
27
28
// Forward declarations
29
class
SymbolicConditional;
30
31
/* ************************************************************************* */
33
class
GTSAM_EXPORT
SymbolicBayesTreeClique
:
34
public
BayesTreeCliqueBase
<SymbolicBayesTreeClique, SymbolicFactorGraph>
35
{
36
public
:
37
typedef
SymbolicBayesTreeClique
This
;
38
typedef
BayesTreeCliqueBase<SymbolicBayesTreeClique, SymbolicFactorGraph>
Base
;
39
typedef
std::shared_ptr<This>
shared_ptr
;
40
typedef
std::weak_ptr<This>
weak_ptr
;
41
SymbolicBayesTreeClique
() {}
42
SymbolicBayesTreeClique
(
const
std::shared_ptr<SymbolicConditional>& conditional) :
Base
(conditional) {}
43
};
44
45
/* ************************************************************************* */
48
class
GTSAM_EXPORT
SymbolicBayesTree
:
49
public
BayesTree
<SymbolicBayesTreeClique>
50
{
51
private
:
52
typedef
BayesTree<SymbolicBayesTreeClique>
Base
;
53
54
public
:
55
typedef
SymbolicBayesTree
This
;
56
typedef
std::shared_ptr<This>
shared_ptr
;
57
59
SymbolicBayesTree
() {}
60
62
bool
equals
(
const
This
&
other
,
double
tol
= 1
e
-9)
const
;
63
64
private
:
65
#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
66
67
friend
class
boost::serialization::access;
68
template
<
class
ARCHIVE>
69
void
serialize(ARCHIVE & ar,
const
unsigned
int
/*version*/
) {
70
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base
);
71
}
72
#endif
73
};
74
76
template
<>
struct
traits
<
SymbolicBayesTreeClique
> :
public
Testable
<SymbolicBayesTreeClique> {};
77
template
<>
struct
traits
<
SymbolicBayesTree
> :
public
Testable
<SymbolicBayesTree> {};
78
79
}
//\ namespace gtsam
80
gtsam::SymbolicBayesTree::Base
BayesTree< SymbolicBayesTreeClique > Base
Definition:
SymbolicBayesTree.h:52
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
BayesTree.h
Bayes Tree is a tree of cliques of a Bayes Chain.
BayesTreeCliqueBase.h
Base class for cliques of a BayesTree.
gtsam::SymbolicBayesTree
Definition:
SymbolicBayesTree.h:48
gtsam::SymbolicBayesTree::This
SymbolicBayesTree This
Definition:
SymbolicBayesTree.h:55
gtsam::SymbolicBayesTreeClique::Base
BayesTreeCliqueBase< SymbolicBayesTreeClique, SymbolicFactorGraph > Base
Definition:
SymbolicBayesTree.h:38
gtsam::BayesTreeCliqueBase
Definition:
BayesTreeCliqueBase.h:49
gtsam::SymbolicBayesTreeClique::weak_ptr
std::weak_ptr< This > weak_ptr
Definition:
SymbolicBayesTree.h:40
gtsam::SymbolicBayesTreeClique::This
SymbolicBayesTreeClique This
Definition:
SymbolicBayesTree.h:37
gtsam::SymbolicBayesTree::shared_ptr
std::shared_ptr< This > shared_ptr
Definition:
SymbolicBayesTree.h:56
SymbolicFactorGraph.h
gtsam::equals
Definition:
Testable.h:112
gtsam::SymbolicBayesTreeClique
A clique in a SymbolicBayesTree.
Definition:
SymbolicBayesTree.h:33
gtsam
traits
Definition:
SFMdata.h:40
gtsam::Testable
Definition:
Testable.h:152
gtsam::SymbolicBayesTreeClique::shared_ptr
std::shared_ptr< This > shared_ptr
Definition:
SymbolicBayesTree.h:39
gtsam::BayesTree
Definition:
BayesTree.h:66
gtsam::traits
Definition:
Group.h:36
gtsam::SymbolicBayesTreeClique::SymbolicBayesTreeClique
SymbolicBayesTreeClique(const std::shared_ptr< SymbolicConditional > &conditional)
Definition:
SymbolicBayesTree.h:42
gtsam::SymbolicBayesTreeClique::SymbolicBayesTreeClique
SymbolicBayesTreeClique()
Definition:
SymbolicBayesTree.h:41
This
#define This
Definition:
ActiveSetSolver-inl.h:27
gtsam::tol
const G double tol
Definition:
Group.h:79
gtsam::SymbolicBayesTree::SymbolicBayesTree
SymbolicBayesTree()
Definition:
SymbolicBayesTree.h:59
SymbolicBayesNet.h
Base
Definition:
test_virtual_functions.cpp:156
pybind_wrapper_test_script.other
other
Definition:
pybind_wrapper_test_script.py:42
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:14:22