Added non-const constructor from filtered
parent
c2fe87fdc4
commit
d83c4c390c
|
|
@ -169,6 +169,16 @@ namespace gtsam {
|
|||
}
|
||||
};
|
||||
|
||||
/* ************************************************************************* */
|
||||
/** Constructor from a Filtered view copies out all values */
|
||||
template<class ValueType>
|
||||
Values::Values(const Values::Filtered<ValueType>& view) {
|
||||
BOOST_FOREACH(const typename Filtered<ValueType>::KeyValuePair& key_value, view) {
|
||||
Key key = key_value.key;
|
||||
insert(key, key_value.value);
|
||||
}
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
template<class ValueType>
|
||||
Values::Values(const Values::ConstFiltered<ValueType>& view) {
|
||||
|
|
|
|||
|
|
@ -138,6 +138,10 @@ namespace gtsam {
|
|||
/** Copy constructor duplicates all keys and values */
|
||||
Values(const Values& other);
|
||||
|
||||
/** Constructor from a Filtered view copies out all values */
|
||||
template<class ValueType>
|
||||
Values(const Filtered<ValueType>& view);
|
||||
|
||||
/** Constructor from a Filtered or ConstFiltered view */
|
||||
template<class ValueType>
|
||||
Values(const ConstFiltered<ValueType>& view);
|
||||
|
|
|
|||
Loading…
Reference in New Issue