Added SymbolicFactor and Conditional clone()

release/4.3a0
Richard Roberts 2013-08-12 18:21:25 +00:00
parent c2284a3d6b
commit ea706c82dc
2 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,9 @@ namespace gtsam {
virtual ~SymbolicConditional() {} virtual ~SymbolicConditional() {}
/// Copy this object as its actual derived type.
SymbolicFactor::shared_ptr clone() const { return boost::make_shared<This>(*this); }
/// @} /// @}
/// @name Testable /// @name Testable

View File

@ -20,6 +20,7 @@
#include <utility> #include <utility>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/assign/list_of.hpp> #include <boost/assign/list_of.hpp>
#include <boost/make_shared.hpp>
#include <gtsam/inference/Factor.h> #include <gtsam/inference/Factor.h>
#include <gtsam/inference/Key.h> #include <gtsam/inference/Key.h>
@ -76,6 +77,9 @@ namespace gtsam {
virtual ~SymbolicFactor() {} virtual ~SymbolicFactor() {}
/// Copy this object as its actual derived type.
SymbolicFactor::shared_ptr clone() const { return boost::make_shared<This>(*this); }
/// @} /// @}
/// @name Testable /// @name Testable