gtsam
4.0.0
gtsam
|
Helper struct that encapsulates a value with a default, this is just used as a member object so you don't have to specify defaults in the class constructor.
Public Member Functions | |
ValueWithDefault () | |
Default constructor, initialize to default value supplied in template argument. | |
ValueWithDefault (const T &_value) | |
Initialize to the given value. | |
T & | operator * () |
Operator to access the value. | |
const T & | operator * () const |
Operator to access the value. | |
operator T () const | |
Implicit conversion allows use in if statements for bool type, etc. More... | |
Public Attributes | |
T | value |
|
inline |
Implicit conversion allows use in if statements for bool type, etc.