constructor with three parents

release/4.3a0
Frank Dellaert 2009-11-19 06:34:28 +00:00
parent b2eee54b5a
commit 8d8503bd99
1 changed files with 11 additions and 0 deletions

View File

@ -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
*/