21 #include <gtsam/config.h> 24 #include <boost/serialization/assume_abstract.hpp> 40 virtual Value* clone_()
const = 0;
43 virtual void deallocate_()
const = 0;
46 virtual boost::shared_ptr<Value> clone()
const = 0;
49 virtual bool equals_(
const Value& other,
double tol = 1e-9)
const = 0;
52 virtual void print(
const std::string& str =
"")
const = 0;
59 virtual size_t dim()
const = 0;
67 virtual Value* retract_(
const Vector& delta)
const = 0;
75 virtual Vector localCoordinates_(
const Value& value)
const = 0;
84 template<
typename ValueType>
85 const ValueType& cast()
const;
121 friend class boost::serialization::access;
122 template<
class ARCHIVE>
123 void serialize(ARCHIVE & ,
const unsigned int ) {
This is the base class for any type to be stored in Values.
Definition: Value.h:36
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition: Matrix.cpp:141
virtual Value & operator=(const Value &)
Assignment operator.
Definition: Value.h:78
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
virtual ~Value()
Virutal destructor.
Definition: Value.h:88
typedef and functions to augment Eigen's VectorXd