Changed list back to FastList, accidently left from debugging
parent
7fc9f39918
commit
ba5bb0298d
|
@ -152,8 +152,8 @@ namespace gtsam {
|
|||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
std::list<Key> Values::keys() const {
|
||||
std::list<Key> result;
|
||||
FastList<Key> Values::keys() const {
|
||||
FastList<Key> result;
|
||||
for(const_iterator key_value = begin(); key_value != end(); ++key_value) {
|
||||
result.push_back(key_value->key);
|
||||
cout << result.back() << endl;
|
||||
|
|
|
@ -296,7 +296,7 @@ namespace gtsam {
|
|||
* Returns a set of keys in the config
|
||||
* Note: by construction, the list is ordered
|
||||
*/
|
||||
std::list<Key> keys() const;
|
||||
FastList<Key> keys() const;
|
||||
|
||||
/** Replace all keys and variables */
|
||||
Values& operator=(const Values& rhs);
|
||||
|
|
|
@ -218,12 +218,12 @@ TEST(Values, extract_keys)
|
|||
config.insert(key3, Pose2());
|
||||
config.insert(key4, Pose2());
|
||||
|
||||
std::list<Key> expected, actual;
|
||||
FastList<Key> expected, actual;
|
||||
expected += key1, key2, key3, key4;
|
||||
actual = config.keys();
|
||||
|
||||
CHECK(actual.size() == expected.size());
|
||||
std::list<Key>::const_iterator itAct = actual.begin(), itExp = expected.begin();
|
||||
FastList<Key>::const_iterator itAct = actual.begin(), itExp = expected.begin();
|
||||
for (; itAct != actual.end() && itExp != expected.end(); ++itAct, ++itExp) {
|
||||
EXPECT(*itExp == *itAct);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue