Public Member Functions | Public Attributes | List of all members
gtsam::ValueWithDefault< T, defaultValue > Struct Template Reference

#include <types.h>

Public Member Functions

 operator T () const
 
Toperator* ()
 
const Toperator* () const
 
 ValueWithDefault ()
 
 ValueWithDefault (const T &_value)
 

Public Attributes

T value
 

Detailed Description

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.

Definition at line 98 of file types.h.

Constructor & Destructor Documentation

template<typename T, T defaultValue>
gtsam::ValueWithDefault< T, defaultValue >::ValueWithDefault ( )
inline

Default constructor, initialize to default value supplied in template argument

Definition at line 102 of file types.h.

template<typename T, T defaultValue>
gtsam::ValueWithDefault< T, defaultValue >::ValueWithDefault ( const T _value)
inline

Initialize to the given value

Definition at line 105 of file types.h.

Member Function Documentation

template<typename T, T defaultValue>
gtsam::ValueWithDefault< T, defaultValue >::operator T ( ) const
inline

Implicit conversion allows use in if statements for bool type, etc.

Definition at line 114 of file types.h.

template<typename T, T defaultValue>
T& gtsam::ValueWithDefault< T, defaultValue >::operator* ( )
inline

Operator to access the value

Definition at line 108 of file types.h.

template<typename T, T defaultValue>
const T& gtsam::ValueWithDefault< T, defaultValue >::operator* ( ) const
inline

Operator to access the value

Definition at line 111 of file types.h.

Member Data Documentation

template<typename T, T defaultValue>
T gtsam::ValueWithDefault< T, defaultValue >::value

Definition at line 99 of file types.h.


The documentation for this struct was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:37