#include <GenericValue.h>
Public Types | |
typedef T | type |
Public Member Functions | |
std::shared_ptr< Value > | clone () const override |
Value * | clone_ () const override |
void | deallocate_ () const override |
size_t | dim () const override |
Return run-time dimensionality. More... | |
bool | equals (const GenericValue &other, double tol=1e-9) const |
non virtual equals function, uses traits More... | |
bool | equals_ (const Value &p, double tol=1e-9) const override |
equals implementing generic Value interface More... | |
GenericValue () | |
GenericValue (const T &value) | |
Construct from value. More... | |
Vector | localCoordinates (const GenericValue &value2) const |
Non-virtual version of localCoordinates. More... | |
Vector | localCoordinates_ (const Value &value2) const override |
Generic Value interface version of localCoordinates. More... | |
Value & | operator= (const Value &rhs) override |
Assignment operator. More... | |
void | print (const std::string &str) const override |
Virtual print function, uses traits. More... | |
GenericValue | retract (const Vector &delta) const |
Non-virtual version of retract. More... | |
Value * | retract_ (const Vector &delta) const override |
Generic Value interface version of retract. More... | |
T & | value () |
Return the value. More... | |
const T & | value () const |
Return a constant value. More... | |
~GenericValue () override | |
Destructor. More... | |
Public Member Functions inherited from gtsam::Value | |
template<typename ValueType > | |
const ValueType & | cast () const |
virtual | ~Value () |
Protected Member Functions | |
GenericValue< T > & | operator= (const GenericValue< T > &rhs) |
Protected Attributes | |
T | value_ |
The wrapped value. More... | |
Private Types | |
enum | { NeedsToAlign = (sizeof(T) % 16) == 0 } |
Wraps any type T so it can play as a Value
Definition at line 44 of file GenericValue.h.
typedef T gtsam::GenericValue< T >::type |
Definition at line 48 of file GenericValue.h.
|
private |
Enumerator | |
---|---|
NeedsToAlign |
Definition at line 189 of file GenericValue.h.
|
inline |
Definition at line 56 of file GenericValue.h.
|
inline |
Construct from value.
Definition at line 59 of file GenericValue.h.
|
inlineoverride |
Destructor.
Definition at line 74 of file GenericValue.h.
|
inlineoverridevirtual |
Clone this value (normal clone on the heap, delete with 'delete' operator)
Implements gtsam::Value.
Definition at line 114 of file GenericValue.h.
|
inlineoverridevirtual |
Create a duplicate object returned as a pointer to the generic Value interface.
Implements gtsam::Value.
Definition at line 99 of file GenericValue.h.
|
inlineoverridevirtual |
Destroy and deallocate this object, only if it was originally allocated using clone_().
Implements gtsam::Value.
Definition at line 107 of file GenericValue.h.
|
inlineoverridevirtual |
Return run-time dimensionality.
Implements gtsam::Value.
Definition at line 150 of file GenericValue.h.
|
inline |
non virtual equals function, uses traits
Definition at line 86 of file GenericValue.h.
|
inlineoverridevirtual |
equals implementing generic Value interface
Implements gtsam::Value.
Definition at line 78 of file GenericValue.h.
|
inline |
Non-virtual version of localCoordinates.
Definition at line 145 of file GenericValue.h.
|
inlineoverridevirtual |
Generic Value interface version of localCoordinates.
Implements gtsam::Value.
Definition at line 130 of file GenericValue.h.
|
inlineprotected |
Assignment operator, protected because only the Value or DERIVED assignment operators should be used.
Definition at line 168 of file GenericValue.h.
|
inlineoverridevirtual |
Assignment operator.
Reimplemented from gtsam::Value.
Definition at line 155 of file GenericValue.h.
|
inlineoverridevirtual |
Virtual print function, uses traits.
Implements gtsam::Value.
Definition at line 91 of file GenericValue.h.
|
inline |
Non-virtual version of retract.
Definition at line 140 of file GenericValue.h.
|
inlineoverridevirtual |
Generic Value interface version of retract.
Implements gtsam::Value.
Definition at line 119 of file GenericValue.h.
|
inline |
Return the value.
Definition at line 69 of file GenericValue.h.
|
inline |
Return a constant value.
Definition at line 64 of file GenericValue.h.
|
protected |
The wrapped value.
Definition at line 52 of file GenericValue.h.