Small rename of template arguments to clarify
parent
735d927189
commit
8da8b4dca2
|
@ -108,15 +108,15 @@ namespace gtsam {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
template<class DERIVED, class KEY>
|
template<class DERIVEDFACTOR, class KEY>
|
||||||
typename DERIVED::shared_ptr Combine(const FactorGraph<DERIVED>& factors,
|
typename DERIVEDFACTOR::shared_ptr Combine(const FactorGraph<DERIVEDFACTOR>& factors,
|
||||||
const FastMap<KEY, std::vector<KEY> >& variableSlots) {
|
const FastMap<KEY, std::vector<KEY> >& variableSlots) {
|
||||||
|
|
||||||
typedef const std::pair<const KEY, std::vector<KEY> > KeySlotPair;
|
typedef const std::pair<const KEY, std::vector<KEY> > KeySlotPair;
|
||||||
// Local functional for getting keys out of key-value pairs
|
// Local functional for getting keys out of key-value pairs
|
||||||
struct Local { static KEY FirstOf(const KeySlotPair& pr) { return pr.first; } };
|
struct Local { static KEY FirstOf(const KeySlotPair& pr) { return pr.first; } };
|
||||||
|
|
||||||
return typename DERIVED::shared_ptr(new DERIVED(
|
return typename DERIVEDFACTOR::shared_ptr(new DERIVEDFACTOR(
|
||||||
boost::make_transform_iterator(variableSlots.begin(), &Local::FirstOf),
|
boost::make_transform_iterator(variableSlots.begin(), &Local::FirstOf),
|
||||||
boost::make_transform_iterator(variableSlots.end(), &Local::FirstOf)));
|
boost::make_transform_iterator(variableSlots.end(), &Local::FirstOf)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,8 +215,8 @@ template<class CONDITIONAL, class CLIQUE> class BayesTree;
|
||||||
}; // FactorGraph
|
}; // FactorGraph
|
||||||
|
|
||||||
/** Create a combined joint factor (new style for EliminationTree). */
|
/** Create a combined joint factor (new style for EliminationTree). */
|
||||||
template<class DERIVED, class KEY>
|
template<class DERIVEDFACTOR, class KEY>
|
||||||
typename DERIVED::shared_ptr Combine(const FactorGraph<DERIVED>& factors,
|
typename DERIVEDFACTOR::shared_ptr Combine(const FactorGraph<DERIVEDFACTOR>& factors,
|
||||||
const FastMap<KEY, std::vector<KEY> >& variableSlots);
|
const FastMap<KEY, std::vector<KEY> >& variableSlots);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue