#include <GenericValue.h>
Public Types | |
typedef T | type |
Public Member Functions | |
boost::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... | |
const T & | value () const |
Return a constant value. More... | |
T & | value () |
Return the 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 } |
Private Member Functions | |
template<class ARCHIVE > | |
void | serialize (ARCHIVE &ar, const unsigned int) |
Friends | |
class | boost::serialization::access |
Wraps any type T so it can play as a Value
Definition at line 47 of file GenericValue.h.
typedef T gtsam::GenericValue< T >::type |
Definition at line 51 of file GenericValue.h.
|
private |
Enumerator | |
---|---|
NeedsToAlign |
Definition at line 190 of file GenericValue.h.
|
inline |
Definition at line 59 of file GenericValue.h.
|
inline |
Construct from value.
Definition at line 62 of file GenericValue.h.
|
inlineoverride |
Destructor.
Definition at line 77 of file GenericValue.h.
|
inlineoverridevirtual |
Clone this value (normal clone on the heap, delete with 'delete' operator)
Implements gtsam::Value.
Definition at line 117 of file GenericValue.h.
|
inlineoverridevirtual |
Create a duplicate object returned as a pointer to the generic Value interface.
Implements gtsam::Value.
Definition at line 102 of file GenericValue.h.
|
inlineoverridevirtual |
Destroy and deallocate this object, only if it was originally allocated using clone_().
Implements gtsam::Value.
Definition at line 110 of file GenericValue.h.
|
inlineoverridevirtual |
Return run-time dimensionality.
Implements gtsam::Value.
Definition at line 153 of file GenericValue.h.
|
inline |
non virtual equals function, uses traits
Definition at line 89 of file GenericValue.h.
|
inlineoverridevirtual |
equals implementing generic Value interface
Implements gtsam::Value.
Definition at line 81 of file GenericValue.h.
|
inline |
Non-virtual version of localCoordinates.
Definition at line 148 of file GenericValue.h.
|
inlineoverridevirtual |
Generic Value interface version of localCoordinates.
Implements gtsam::Value.
Definition at line 133 of file GenericValue.h.
|
inlineoverridevirtual |
Assignment operator.
Reimplemented from gtsam::Value.
Definition at line 158 of file GenericValue.h.
|
inlineprotected |
Assignment operator, protected because only the Value or DERIVED assignment operators should be used.
Definition at line 171 of file GenericValue.h.
|
inlineoverridevirtual |
Virtual print function, uses traits.
Implements gtsam::Value.
Definition at line 94 of file GenericValue.h.
|
inline |
Non-virtual version of retract.
Definition at line 143 of file GenericValue.h.
|
inlineoverridevirtual |
Generic Value interface version of retract.
Implements gtsam::Value.
Definition at line 122 of file GenericValue.h.
|
inlineprivate |
Definition at line 182 of file GenericValue.h.
|
inline |
Return a constant value.
Definition at line 67 of file GenericValue.h.
|
inline |
Return the value.
Definition at line 72 of file GenericValue.h.
|
friend |
Serialization function
Definition at line 180 of file GenericValue.h.
|
protected |
The wrapped value.
Definition at line 55 of file GenericValue.h.