docs and missing traits

release/4.3a0
Jose Luis Blanco-Claraco 2020-07-27 08:54:14 +02:00 committed by Jose Luis Blanco Claraco
parent c985701fdc
commit 8b1f3e1745
No known key found for this signature in database
GPG Key ID: D443304FBD70A641
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,9 @@ namespace gtsam {
* such instances, the user should declare derived classes from this template,
* implementing expresion(), serialize(), clone(), print(), and defining the
* corresponding `struct traits<NewFactor> : public Testable<NewFactor> {}`.
*
* \tparam T Type for measurements.
*
*/
template<typename T>
class ExpressionFactor: public NoiseModelFactor {
@ -279,6 +282,9 @@ class ExpressionFactor2 : public ExpressionFactor<T> {
"ExpressionFactor", boost::serialization::base_object<ExpressionFactor<T> >(*this));
}
};
/// traits
template <typename T, typename A1, typename A2>
struct traits<ExpressionFactor2<T,A1,A2>> : public Testable<ExpressionFactor2<T,A1,A2>> {};
// ExpressionFactor2
}// \ namespace gtsam