gtsam  4.0.0
gtsam
DiscreteBayesTree.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 
20 #pragma once
21 
26 
27 namespace gtsam {
28 
29  // Forward declarations
30  class DiscreteConditional;
31  class VectorValues;
32 
33  /* ************************************************************************* */
35  class GTSAM_EXPORT DiscreteBayesTreeClique :
36  public BayesTreeCliqueBase<DiscreteBayesTreeClique, DiscreteFactorGraph>
37  {
38  public:
41  typedef boost::shared_ptr<This> shared_ptr;
42  typedef boost::weak_ptr<This> weak_ptr;
44  DiscreteBayesTreeClique(const boost::shared_ptr<DiscreteConditional>& conditional) : Base(conditional) {}
45  };
46 
47  /* ************************************************************************* */
49  class GTSAM_EXPORT DiscreteBayesTree :
50  public BayesTree<DiscreteBayesTreeClique>
51  {
52  private:
54 
55  public:
56  typedef DiscreteBayesTree This;
57  typedef boost::shared_ptr<This> shared_ptr;
58 
61 
63  bool equals(const This& other, double tol = 1e-9) const;
64  };
65 
66 }
DiscreteBayesTree()
Default constructor, creates an empty Bayes tree.
Definition: DiscreteBayesTree.h:60
Template to create a binary predicate.
Definition: Testable.h:110
This is the base class for BayesTree cliques.
Definition: BayesTreeCliqueBase.h:48
Definition: BayesTree.h:64
Base class for cliques of a BayesTree.
A Bayes tree representing a Discrete density.
Definition: DiscreteBayesTree.h:49
A clique in a DiscreteBayesTree.
Definition: DiscreteBayesTree.h:35
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
Bayes Tree is a tree of cliques of a Bayes Chain.