add serialization to HybridGaussianProductFactor
parent
caddc734c2
commit
205eb18f47
|
@ -115,6 +115,16 @@ class GTSAM_EXPORT HybridGaussianProductFactor
|
||||||
HybridGaussianProductFactor removeEmpty() const;
|
HybridGaussianProductFactor removeEmpty() const;
|
||||||
|
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
|
private:
|
||||||
|
#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
|
||||||
|
/** Serialization function */
|
||||||
|
friend class boost::serialization::access;
|
||||||
|
template <class Archive>
|
||||||
|
void serialize(Archive& ar, const unsigned int /*version*/) {
|
||||||
|
ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
// Testable traits
|
// Testable traits
|
||||||
|
|
|
@ -59,6 +59,9 @@ BOOST_CLASS_EXPORT_GUID(HybridGaussianFactor::FactorValuePairs::Leaf,
|
||||||
BOOST_CLASS_EXPORT_GUID(HybridGaussianFactor::FactorValuePairs::Choice,
|
BOOST_CLASS_EXPORT_GUID(HybridGaussianFactor::FactorValuePairs::Choice,
|
||||||
"gtsam_HybridGaussianFactor_Factors_Choice");
|
"gtsam_HybridGaussianFactor_Factors_Choice");
|
||||||
|
|
||||||
|
BOOST_CLASS_EXPORT_GUID(GaussianFactorGraphValuePair,
|
||||||
|
"gtsam_GaussianFactorGraphValuePair");
|
||||||
|
|
||||||
BOOST_CLASS_EXPORT_GUID(HybridGaussianConditional,
|
BOOST_CLASS_EXPORT_GUID(HybridGaussianConditional,
|
||||||
"gtsam_HybridGaussianConditional");
|
"gtsam_HybridGaussianConditional");
|
||||||
BOOST_CLASS_EXPORT_GUID(HybridGaussianConditional::Conditionals,
|
BOOST_CLASS_EXPORT_GUID(HybridGaussianConditional::Conditionals,
|
||||||
|
|
Loading…
Reference in New Issue