Classes | Public Member Functions | Protected Member Functions | List of all members
rtabmap::DerivedValue< DERIVED > Class Template Reference

#include <DerivedValue.h>

Inheritance diagram for rtabmap::DerivedValue< DERIVED >:
Inheritance graph
[legend]

Classes

struct  PoolTag
 Fake Tag struct for singleton pool allocator. In fact, it is never used! More...
 

Public Member Functions

virtual boost::shared_ptr< gtsam::Valueclone () const
 
virtual gtsam::Valueclone_ () const
 
virtual void deallocate_ () const
 
virtual bool equals_ (const gtsam::Value &p, double tol=1e-9) const
 equals implementing generic Value interface More...
 
virtual gtsam::Vector localCoordinates_ (const gtsam::Value &value2) const
 Generic Value interface version of localCoordinates. More...
 
 operator const DERIVED & () const
 Conversion to the derived class. More...
 
 operator DERIVED & ()
 Conversion to the derived class. More...
 
virtual gtsam::Valueoperator= (const gtsam::Value &rhs)
 Assignment operator. More...
 
virtual gtsam::Valueretract_ (const gtsam::Vector &delta) const
 Generic Value interface version of retract. More...
 
virtual ~DerivedValue ()
 
- Public Member Functions inherited from gtsam::Value
const ValueType & cast () const
 
virtual size_t dim () const=0
 
virtual void print (const std::string &str="") const=0
 
virtual ~Value ()
 

Protected Member Functions

 DerivedValue ()
 
DerivedValue< DERIVED > & operator= (const DerivedValue< DERIVED > &)
 

Detailed Description

template<class DERIVED>
class rtabmap::DerivedValue< DERIVED >

Definition at line 44 of file DerivedValue.h.

Constructor & Destructor Documentation

◆ DerivedValue()

template<class DERIVED >
rtabmap::DerivedValue< DERIVED >::DerivedValue ( )
inlineprotected

Definition at line 47 of file DerivedValue.h.

◆ ~DerivedValue()

template<class DERIVED >
virtual rtabmap::DerivedValue< DERIVED >::~DerivedValue ( )
inlinevirtual

Definition at line 51 of file DerivedValue.h.

Member Function Documentation

◆ clone()

template<class DERIVED >
virtual boost::shared_ptr<gtsam::Value> rtabmap::DerivedValue< DERIVED >::clone ( ) const
inlinevirtual

Clone this value (normal clone on the heap, delete with 'delete' operator)

Implements gtsam::Value.

Definition at line 80 of file DerivedValue.h.

◆ clone_()

template<class DERIVED >
virtual gtsam::Value* rtabmap::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.

Definition at line 58 of file DerivedValue.h.

◆ deallocate_()

template<class DERIVED >
virtual void rtabmap::DerivedValue< DERIVED >::deallocate_ ( ) const
inlinevirtual

Destroy and deallocate this object, only if it was originally allocated using clone_().

Implements gtsam::Value.

Definition at line 67 of file DerivedValue.h.

◆ equals_()

template<class DERIVED >
virtual bool rtabmap::DerivedValue< DERIVED >::equals_ ( const gtsam::Value p,
double  tol = 1e-9 
) const
inlinevirtual

equals implementing generic Value interface

Implements gtsam::Value.

Definition at line 86 of file DerivedValue.h.

◆ localCoordinates_()

template<class DERIVED >
virtual gtsam::Vector rtabmap::DerivedValue< DERIVED >::localCoordinates_ ( const gtsam::Value value2) const
inlinevirtual

Generic Value interface version of localCoordinates.

Implements gtsam::Value.

Definition at line 108 of file DerivedValue.h.

◆ operator const DERIVED &()

template<class DERIVED >
rtabmap::DerivedValue< DERIVED >::operator const DERIVED & ( ) const
inline

Conversion to the derived class.

Definition at line 126 of file DerivedValue.h.

◆ operator DERIVED &()

template<class DERIVED >
rtabmap::DerivedValue< DERIVED >::operator DERIVED & ( )
inline

Conversion to the derived class.

Definition at line 131 of file DerivedValue.h.

◆ operator=() [1/2]

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

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

Definition at line 138 of file DerivedValue.h.

◆ operator=() [2/2]

template<class DERIVED >
virtual gtsam::Value& rtabmap::DerivedValue< DERIVED >::operator= ( const gtsam::Value rhs)
inlinevirtual

Assignment operator.

Reimplemented from gtsam::Value.

Definition at line 117 of file DerivedValue.h.

◆ retract_()

template<class DERIVED >
virtual gtsam::Value* rtabmap::DerivedValue< DERIVED >::retract_ ( const gtsam::Vector delta) const
inlinevirtual

Generic Value interface version of retract.

Implements gtsam::Value.

Definition at line 95 of file DerivedValue.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:27