add Testable traits to DiscreteBayesTree and HybridBayesTree

release/4.3a0
Varun Agrawal 2023-09-18 22:57:24 -04:00
parent 299e5fd42e
commit 8255ad596c
2 changed files with 12 additions and 0 deletions

View File

@ -110,4 +110,12 @@ class GTSAM_EXPORT DiscreteBayesTree
/// @} /// @}
}; };
/// traits
template <>
struct traits<DiscreteBayesTreeClique>
: public Testable<DiscreteBayesTreeClique> {};
template <>
struct traits<DiscreteBayesTree> : public Testable<DiscreteBayesTree> {};
} // namespace gtsam } // namespace gtsam

View File

@ -123,6 +123,10 @@ class GTSAM_EXPORT HybridBayesTree : public BayesTree<HybridBayesTreeClique> {
}; };
/// traits /// traits
template <>
struct traits<HybridBayesTreeClique> : public Testable<HybridBayesTreeClique> {
};
template <> template <>
struct traits<HybridBayesTree> : public Testable<HybridBayesTree> {}; struct traits<HybridBayesTree> : public Testable<HybridBayesTree> {};