From 1702c20a14b2719bde9fba89c2f3ca34c583e2eb Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Tue, 18 Jan 2022 17:33:56 -0500 Subject: [PATCH] Wrap push_back methods --- gtsam/discrete/discrete.i | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gtsam/discrete/discrete.i b/gtsam/discrete/discrete.i index e4af27eb1..539c15997 100644 --- a/gtsam/discrete/discrete.i +++ b/gtsam/discrete/discrete.i @@ -230,11 +230,16 @@ class DiscreteFactorGraph { DiscreteFactorGraph(); DiscreteFactorGraph(const gtsam::DiscreteBayesNet& bayesNet); - void add(const gtsam::DiscreteKey& j, string table); + // Building the graph + void push_back(const gtsam::DiscreteFactor* factor); + void push_back(const gtsam::DiscreteConditional* conditional); + void push_back(const gtsam::DiscreteFactorGraph& graph); + void push_back(const gtsam::DiscreteBayesNet& bayesNet); + void push_back(const gtsam::DiscreteBayesTree& bayesTree); + void add(const gtsam::DiscreteKey& j, string spec); void add(const gtsam::DiscreteKey& j, const std::vector& spec); - - void add(const gtsam::DiscreteKeys& keys, string table); - void add(const std::vector& keys, string table); + void add(const gtsam::DiscreteKeys& keys, string spec); + void add(const std::vector& keys, string spec); bool empty() const; size_t size() const;