template<typename T, T defaultValue>
struct gtsam::ValueWithDefault< T, defaultValue >
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.
Public Attributes
T
value
The documentation for this struct was generated from the following file: