21 #include <gtsam/config.h> 24 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 25 #include <boost/serialization/nvp.hpp> 26 #include <boost/serialization/assume_abstract.hpp> 43 virtual Value* clone_()
const = 0;
46 virtual void deallocate_()
const = 0;
49 virtual std::shared_ptr<Value> clone()
const = 0;
52 virtual bool equals_(
const Value&
other,
double tol = 1
e-9)
const = 0;
55 virtual void print(
const std::string&
str =
"")
const = 0;
62 virtual size_t dim()
const = 0;
87 template<
typename ValueType>
88 const ValueType&
cast()
const;
124 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 125 friend class boost::serialization::access;
126 template<
class ARCHIVE>
127 void serialize(ARCHIVE & ,
const unsigned int ) {
135 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION void print(const Matrix &A, const string &s, ostream &stream)
std::string serialize(const T &input)
serializes to a string
EIGEN_DEVICE_FUNC NewType cast(const OldType &x)
virtual Value & operator=(const Value &)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
typedef and functions to augment Eigen's VectorXd