21 #include <gtsam/config.h> 24 #include <boost/serialization/assume_abstract.hpp> 87 virtual Value* clone_()
const = 0;
90 virtual void deallocate_()
const = 0;
93 virtual boost::shared_ptr<Value> clone()
const = 0;
96 virtual bool equals_(
const Value& other,
double tol = 1e-9)
const = 0;
99 virtual void print(
const std::string& str =
"")
const = 0;
106 virtual size_t dim()
const = 0;
114 virtual Value* retract_(
const Vector& delta)
const = 0;
122 virtual Vector localCoordinates_(
const Value& value)
const = 0;
131 template<
typename ValueType>
132 const ValueType& cast()
const;
168 friend class boost::serialization::access;
169 template<
class ARCHIVE>
170 void serialize(ARCHIVE & ,
const unsigned int ) {
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:140
typedef and functions to augment Eigen's VectorXd
virtual Value & operator=(const Value &)
Assignment operator.
Definition: Value.h:125
virtual ~Value()
Virutal destructor.
Definition: Value.h:135
This is the interface class for any value that may be used as a variable assignment in a factor graph...
Definition: Value.h:83
Global functions in a separate testing namespace.
Definition: chartTesting.h:28