VariableIndex

release/4.3a0
kartik arcot 2023-01-13 10:55:43 -08:00
parent d05d2af6b5
commit 80fdd69a14
2 changed files with 11 additions and 3 deletions

View File

@ -24,8 +24,7 @@ namespace gtsam {
/* ************************************************************************* */
template<class FG>
void VariableIndex::augment(const FG& factors,
boost::optional<const FactorIndices&> newFactorIndices) {
void VariableIndex::augment(const FG& factors, const FactorIndices* newFactorIndices) {
gttic(VariableIndex_augment);
// Augment index for each factor

View File

@ -126,7 +126,16 @@ class GTSAM_EXPORT VariableIndex {
* solving problems incrementally.
*/
template<class FG>
void augment(const FG& factors, boost::optional<const FactorIndices&> newFactorIndices = boost::none);
void augment(const FG& factors, const FactorIndices* newFactorIndices = nullptr);
/**
* An overload of augment() that takes a single factor. and l-value
* reference to FactorIndeces.
*/
template<class FG>
void augment(const FG& factor, const FactorIndices& newFactorIndices) {
augment(factor, &newFactorIndices);
}
/**
* Augment the variable index after an existing factor now affects to more