From 1918d28f68283dbb10dcdf682294af93ae387abc Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Tue, 8 Jun 2010 18:32:29 +0000 Subject: [PATCH] Added insertSub() to PairConfig --- cpp/TupleConfig.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/TupleConfig.h b/cpp/TupleConfig.h index 7db8a1138..090e4ee40 100644 --- a/cpp/TupleConfig.h +++ b/cpp/TupleConfig.h @@ -495,6 +495,10 @@ namespace gtsam { void insert(const PairConfig& config); + /** Insert a subconfig */ + void insertSub(const Config1& config) { first_.insert(config); } + void insertSub(const Config2& config) { second_.insert(config); } + /** * Remove the variable with the given j. Throws invalid_argument if the * j is not present in the config.