From 8d8503bd99b57c5b69bfd6cf3b0130f58115a8d8 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Thu, 19 Nov 2009 06:34:28 +0000 Subject: [PATCH] constructor with three parents --- cpp/SymbolicConditional.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cpp/SymbolicConditional.h b/cpp/SymbolicConditional.h index 331669682..0c9a5d96b 100644 --- a/cpp/SymbolicConditional.h +++ b/cpp/SymbolicConditional.h @@ -62,6 +62,17 @@ namespace gtsam { parents_.push_back(parent2); } + /** + * Three parents + */ + SymbolicConditional(const std::string& key, const std::string& parent1, + const std::string& parent2, const std::string& parent3) : + Conditional(key) { + parents_.push_back(parent1); + parents_.push_back(parent2); + parents_.push_back(parent3); + } + /** * A list */