Main MRPT website > C++ reference for MRPT 1.5.3
List of all members | Public Member Functions | Private Attributes
Sophus::optional< T > Class Template Reference

Detailed Description

template<class T>
class Sophus::optional< T >

Definition at line 165 of file common.hpp.

#include <mrpt/otherlibs/sophus/common.hpp>

Public Member Functions

 optional ()
 
 optional (nullopt_t)
 
 optional (T const &type)
 
 operator bool () const
 
T const * operator-> () const
 
T * operator-> ()
 
T const & operator* () const
 
T & operator* ()
 

Private Attributes

type_
 
bool is_valid_
 

Constructor & Destructor Documentation

◆ optional() [1/3]

template<class T >
Sophus::optional< T >::optional ( )
inline

Definition at line 167 of file common.hpp.

◆ optional() [2/3]

template<class T >
Sophus::optional< T >::optional ( nullopt_t  )
inline

Definition at line 169 of file common.hpp.

◆ optional() [3/3]

template<class T >
Sophus::optional< T >::optional ( T const &  type)
inline

Definition at line 171 of file common.hpp.

Member Function Documentation

◆ operator bool()

template<class T >
Sophus::optional< T >::operator bool ( ) const
inlineexplicit

Definition at line 173 of file common.hpp.

◆ operator*() [1/2]

template<class T >
T const& Sophus::optional< T >::operator* ( ) const
inline

Definition at line 185 of file common.hpp.

References SOPHUS_ENSURE.

◆ operator*() [2/2]

template<class T >
T& Sophus::optional< T >::operator* ( )
inline

Definition at line 190 of file common.hpp.

References SOPHUS_ENSURE.

◆ operator->() [1/2]

template<class T >
T const* Sophus::optional< T >::operator-> ( ) const
inline

Definition at line 175 of file common.hpp.

References SOPHUS_ENSURE.

◆ operator->() [2/2]

template<class T >
T* Sophus::optional< T >::operator-> ( )
inline

Definition at line 180 of file common.hpp.

References SOPHUS_ENSURE.

Member Data Documentation

◆ is_valid_

template<class T >
bool Sophus::optional< T >::is_valid_
private

Definition at line 197 of file common.hpp.

◆ type_

template<class T >
T Sophus::optional< T >::type_
private

Definition at line 196 of file common.hpp.




Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Mon Oct 30 10:27:08 UTC 2017