Added insertSub() to PairConfig

release/4.3a0
Alex Cunningham 2010-06-08 18:32:29 +00:00
parent 8201c32046
commit 1918d28f68
1 changed files with 4 additions and 0 deletions

View File

@ -495,6 +495,10 @@ namespace gtsam {
void insert(const PairConfig& config); 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 * Remove the variable with the given j. Throws invalid_argument if the
* j is not present in the config. * j is not present in the config.