Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
open3d::utility::optional< T & > Class Template Reference

#include <Optional.h>

Inheritance diagram for open3d::utility::optional< T & >:

Public Types

typedef T value_type

Public Member Functions

constexpr optional () noexcept
constexpr optional (nullopt_t) noexcept
template<typename U = T>
constexpr optional (U &u) noexcept
template<typename U = T>
 optional (U &&)=delete
constexpr optional (const optional &rhs) noexcept
constexpr optional (in_place_t, T &v) noexcept
 optional (in_place_t, T &&)=delete
 ~optional ()=default
optionaloperator= (nullopt_t) noexcept
template<typename U>
auto operator= (U &&rhs) noexcept -> typename std::enable_if< std::is_same< typename std::decay< U >::type, optional< T & > >::value, optional & >::type
template<typename U>
auto operator= (U &&rhs) noexcept -> typename std::enable_if< !std::is_same< typename std::decay< U >::type, optional< T & > >::value, optional & >::type=delete
void emplace (T &v) noexcept
void emplace (T &&)=delete
void swap (optional< T & > &rhs) noexcept
TR2_OPTIONAL_HOST_CONSTEXPR T * operator-> () const
TR2_OPTIONAL_HOST_CONSTEXPR T & operator* () const
constexpr T & value () const
constexpr operator bool () const noexcept
constexpr bool has_value () const noexcept
template<class V>
constexpr std::decay< T >::type value_or (V &&v) const
void reset () noexcept

Member Typedef Documentation

◆ value_type

typedef T open3d::utility::optional< T >::value_type

Constructor & Destructor Documentation

◆ optional() [1/7]

template<class T>
open3d::utility::optional< T & >::optional ( )
inlineconstexprnoexcept

◆ optional() [2/7]

template<class T>
open3d::utility::optional< T & >::optional ( nullopt_t )
inlineconstexprnoexcept

◆ optional() [3/7]

template<class T>
template<typename U = T>
open3d::utility::optional< T & >::optional ( U & u)
inlineconstexprnoexcept

◆ optional() [4/7]

template<class T>
template<typename U = T>
open3d::utility::optional< T & >::optional ( U && )
delete

◆ optional() [5/7]

template<class T>
open3d::utility::optional< T & >::optional ( const optional< T & > & rhs)
inlineconstexprnoexcept

◆ optional() [6/7]

template<class T>
open3d::utility::optional< T & >::optional ( in_place_t ,
T & v )
inlineexplicitconstexprnoexcept

◆ optional() [7/7]

template<class T>
open3d::utility::optional< T & >::optional ( in_place_t ,
T &&  )
explicitdelete

◆ ~optional()

template<class T>
open3d::utility::optional< T & >::~optional ( )
default

Member Function Documentation

◆ emplace() [1/2]

template<class T>
void open3d::utility::optional< T & >::emplace ( T && )
delete

◆ emplace() [2/2]

template<class T>
void open3d::utility::optional< T & >::emplace ( T & v)
inlinenoexcept

◆ has_value()

template<class T>
bool open3d::utility::optional< T & >::has_value ( ) const
inlineconstexprnoexcept

◆ operator bool()

template<class T>
open3d::utility::optional< T & >::operator bool ( ) const
inlineexplicitconstexprnoexcept

◆ operator*()

template<class T>
TR2_OPTIONAL_HOST_CONSTEXPR T & open3d::utility::optional< T & >::operator* ( ) const
inline

◆ operator->()

template<class T>
TR2_OPTIONAL_HOST_CONSTEXPR T * open3d::utility::optional< T & >::operator-> ( ) const
inline

◆ operator=() [1/3]

template<class T>
optional & open3d::utility::optional< T & >::operator= ( nullopt_t )
inlinenoexcept

◆ operator=() [2/3]

template<class T>
template<typename U>
auto open3d::utility::optional< T & >::operator= ( U && rhs) ->typenamestd::enable_if<!std::is_same< typenamestd::decay< U >::type, optional< T & > >::value, optional & >::type=delete
deletenoexcept

◆ operator=() [3/3]

template<class T>
template<typename U>
auto open3d::utility::optional< T & >::operator= ( U && rhs) ->typenamestd::enable_if< std::is_same< typenamestd::decay< U >::type, optional< T & > >::value, optional & >::type
inlinenoexcept

◆ reset()

template<class T>
void open3d::utility::optional< T & >::reset ( )
inlinenoexcept

◆ swap()

template<class T>
void open3d::utility::optional< T & >::swap ( optional< T & > & rhs)
inlinenoexcept

◆ value()

template<class T>
T & open3d::utility::optional< T & >::value ( ) const
inlineconstexpr

◆ value_or()

template<class T>
template<class V>
std::decay< T >::type open3d::utility::optional< T & >::value_or ( V && v) const
inlineconstexpr

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