Accept list in constructor

release/4.3a0
Frank Dellaert 2012-09-17 00:23:56 +00:00
parent 54afba0bbc
commit 33b772fc21
1 changed files with 10 additions and 4 deletions

View File

@ -75,10 +75,16 @@ namespace gtsam {
} }
/** Constructor from keys and nr of frontal variables */ /** Constructor from keys and nr of frontal variables */
IndexConditional(const std::vector<Index>& keys, size_t nrFrontals) : IndexConditional(const std::vector<Index>& keys, size_t nrFrontals) :
Base(keys, nrFrontals) { Base(keys, nrFrontals) {
assertInvariants(); assertInvariants();
} }
/** Constructor from keys and nr of frontal variables */
IndexConditional(const std::list<Index>& keys, size_t nrFrontals) :
Base(keys, nrFrontals) {
assertInvariants();
}
/// @} /// @}
/// @name Standard Interface /// @name Standard Interface