From d88ed78bb39b2dd056667403e6a5eacad234d34d Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 18 Mar 2013 19:27:56 +0000 Subject: [PATCH] Made BayesTree::Cliques a FastList instead of an std::list --- gtsam/inference/BayesTree.h | 4 ++-- gtsam/inference/BayesTreeCliqueBase.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtsam/inference/BayesTree.h b/gtsam/inference/BayesTree.h index 458e5fef2..ebc62a5e4 100644 --- a/gtsam/inference/BayesTree.h +++ b/gtsam/inference/BayesTree.h @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include @@ -69,7 +69,7 @@ namespace gtsam { typedef boost::shared_ptr sharedClique; // A convenience class for a list of shared cliques - struct Cliques : public std::list { + struct Cliques : public FastList { void print(const std::string& s = "Cliques", const IndexFormatter& indexFormatter = DefaultIndexFormatter) const; bool equals(const Cliques& other, double tol = 1e-9) const; diff --git a/gtsam/inference/BayesTreeCliqueBase.h b/gtsam/inference/BayesTreeCliqueBase.h index 3a9a1ef78..b2da252e6 100644 --- a/gtsam/inference/BayesTreeCliqueBase.h +++ b/gtsam/inference/BayesTreeCliqueBase.h @@ -85,7 +85,7 @@ namespace gtsam { public: sharedConditional conditional_; derived_weak_ptr parent_; - std::list children_; + FastList children_; /// @name Testable /// @{ @@ -149,7 +149,7 @@ namespace gtsam { } /** return the reference of children non-const version*/ - std::list& children() { + FastList& children() { return children_; }