gtsam  4.0.0
gtsam
gtsam::DerivedValue< DERIVED > Class Template Reference
+ Inheritance diagram for gtsam::DerivedValue< DERIVED >:

Public Member Functions

virtual Valueclone_ () const
 Create a duplicate object returned as a pointer to the generic Value interface. More...
 
virtual void deallocate_ () const
 Destroy and deallocate this object, only if it was originally allocated using clone_().
 
virtual boost::shared_ptr< Valueclone () const
 Clone this value (normal clone on the heap, delete with 'delete' operator)
 
virtual bool equals_ (const Value &p, double tol=1e-9) const
 equals implementing generic Value interface
 
virtual Valueretract_ (const Vector &delta) const
 Generic Value interface version of retract.
 
virtual Vector localCoordinates_ (const Value &value2) const
 Generic Value interface version of localCoordinates.
 
virtual Valueoperator= (const Value &rhs)
 Assignment operator.
 
 operator const DERIVED & () const
 Conversion to the derived class.
 
 operator DERIVED & ()
 Conversion to the derived class.
 
- Public Member Functions inherited from gtsam::Value
virtual void print (const std::string &str="") const =0
 Print this value, for debugging and unit tests.
 
virtual size_t dim () const =0
 Return the dimensionality of the tangent space of this value. More...
 
template<typename ValueType >
const ValueType & cast () const
 Cast to known ValueType.
 
virtual ~Value ()
 Virutal destructor.
 

Protected Member Functions

DerivedValue< DERIVED > & operator= (const DerivedValue< DERIVED > &)
 Assignment operator, protected because only the Value or DERIVED assignment operators should be used. More...
 

Member Function Documentation

template<class DERIVED >
virtual Value* gtsam::DerivedValue< DERIVED >::clone_ ( ) const
inlinevirtual

Create a duplicate object returned as a pointer to the generic Value interface.

For the sake of performance, this function use singleton pool allocator instead of the normal heap allocator. The result must be deleted with Value::deallocate_, not with the 'delete' operator.

Implements gtsam::Value.

template<class DERIVED >
DerivedValue<DERIVED>& gtsam::DerivedValue< DERIVED >::operator= ( const DerivedValue< DERIVED > &  )
inlineprotected

Assignment operator, protected because only the Value or DERIVED assignment operators should be used.


The documentation for this class was generated from the following file: