#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 GenericValue &other)=default | |
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 |
Value ()=default | |
Value (const Value &other)=default | |
virtual | ~Value () |
Protected Member Functions | |
GenericValue< T > & | operator= (const GenericValue< T > &rhs) |
Protected Attributes | |
T | value_ |
The wrapped value. More... | |
Static Private Attributes | |
constexpr static const bool | 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.
|
inline |
Definition at line 56 of file GenericValue.h.
|
inline |
Construct from value.
Definition at line 59 of file GenericValue.h.
|
default |
|
inlineoverride |
Destructor.
Definition at line 75 of file GenericValue.h.
|
inlineoverridevirtual |
Clone this value (normal clone on the heap, delete with 'delete' operator)
Implements gtsam::Value.
Definition at line 115 of file GenericValue.h.
|
inlineoverridevirtual |
Create a duplicate object returned as a pointer to the generic Value interface.
Implements gtsam::Value.
Definition at line 100 of file GenericValue.h.
|
inlineoverridevirtual |
Destroy and deallocate this object, only if it was originally allocated using clone_().
Implements gtsam::Value.
Definition at line 108 of file GenericValue.h.
|
inlineoverridevirtual |
Return run-time dimensionality.
Implements gtsam::Value.
Definition at line 151 of file GenericValue.h.
|
inline |
non virtual equals function, uses traits
Definition at line 87 of file GenericValue.h.
|
inlineoverridevirtual |
equals implementing generic Value interface
Implements gtsam::Value.
Definition at line 79 of file GenericValue.h.
|
inline |
Non-virtual version of localCoordinates.
Definition at line 146 of file GenericValue.h.
|
inlineoverridevirtual |
Generic Value interface version of localCoordinates.
Implements gtsam::Value.
Definition at line 131 of file GenericValue.h.
|
inlineprotected |
Assignment operator, protected because only the Value or DERIVED assignment operators should be used.
Definition at line 169 of file GenericValue.h.
|
inlineoverridevirtual |
Assignment operator.
Reimplemented from gtsam::Value.
Definition at line 156 of file GenericValue.h.
|
inlineoverridevirtual |
Virtual print function, uses traits.
Implements gtsam::Value.
Definition at line 92 of file GenericValue.h.
|
inline |
Non-virtual version of retract.
Definition at line 141 of file GenericValue.h.
|
inlineoverridevirtual |
Generic Value interface version of retract.
Implements gtsam::Value.
Definition at line 120 of file GenericValue.h.
|
inline |
Return the value.
Definition at line 70 of file GenericValue.h.
|
inline |
Return a constant value.
Definition at line 65 of file GenericValue.h.
|
staticconstexprprivate |
Definition at line 189 of file GenericValue.h.
|
protected |
The wrapped value.
Definition at line 52 of file GenericValue.h.