Added SymbolicFactor and Conditional clone()
parent
c2284a3d6b
commit
ea706c82dc
|
|
@ -78,6 +78,9 @@ namespace gtsam {
|
|||
|
||||
virtual ~SymbolicConditional() {}
|
||||
|
||||
/// Copy this object as its actual derived type.
|
||||
SymbolicFactor::shared_ptr clone() const { return boost::make_shared<This>(*this); }
|
||||
|
||||
/// @}
|
||||
|
||||
/// @name Testable
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#include <utility>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
#include <gtsam/inference/Factor.h>
|
||||
#include <gtsam/inference/Key.h>
|
||||
|
|
@ -76,6 +77,9 @@ namespace gtsam {
|
|||
|
||||
virtual ~SymbolicFactor() {}
|
||||
|
||||
/// Copy this object as its actual derived type.
|
||||
SymbolicFactor::shared_ptr clone() const { return boost::make_shared<This>(*this); }
|
||||
|
||||
/// @}
|
||||
|
||||
/// @name Testable
|
||||
|
|
|
|||
Loading…
Reference in New Issue