Public Types | Public Member Functions | Private Types | List of all members
boost::optional< T > Class Template Reference

#include <optional.hpp>

Inheritance diagram for boost::optional< T >:
Inheritance graph
[legend]

Public Types

typedef BOOST_DEDUCED_TYPENAME base::argument_type argument_type
 
typedef BOOST_DEDUCED_TYPENAME base::pointer_const_type pointer_const_type
 
typedef BOOST_DEDUCED_TYPENAME base::pointer_type pointer_type
 
typedef BOOST_DEDUCED_TYPENAME base::reference_const_type reference_const_type
 
typedef BOOST_DEDUCED_TYPENAME base::reference_type reference_type
 
typedef BOOST_DEDUCED_TYPENAME base::reference_type_of_temporary_wrapper reference_type_of_temporary_wrapper
 
typedef BOOST_DEDUCED_TYPENAME base::rval_reference_type rval_reference_type
 
typedef optional< T > this_type
 
typedef BOOST_DEDUCED_TYPENAME base::value_type value_type
 
- Public Types inherited from boost::optional_detail::optional_base< T >
typedef BOOST_DEDUCED_TYPENAME mpl::if_< is_reference_predicate, types_when_ref, types_when_not_ref >::type types
 

Public Member Functions

template<class... Args>
void emplace (Args &&...args)
 
reference_const_type get () const
 
reference_type get ()
 
reference_const_type get_value_or (reference_const_type v) const
 
reference_type get_value_or (reference_type v)
 
bool operator! () const BOOST_NOEXCEPT
 
reference_const_type operator* () const &
 
reference_type operator* ()&
 
reference_type_of_temporary_wrapper operator* ()&&
 
pointer_const_type operator-> () const
 
pointer_type operator-> ()
 
template<class Expr >
BOOST_DEDUCED_TYPENAME boost::disable_if_c< boost::is_base_of< optional_detail::optional_tag, BOOST_DEDUCED_TYPENAME boost::decay< Expr >::type >::value||boost::is_same< BOOST_DEDUCED_TYPENAME boost::decay< Expr >::type, none_t >::value, optional & >::type operator= (Expr &&expr)
 
template<class U >
optionaloperator= (optional< U > const &rhs)
 
template<class U >
optionaloperator= (optional< U > &&rhs)
 
optionaloperator= (optional const &rhs)
 
optionaloperator= (optional &&rhs) BOOST_NOEXCEPT_IF(
 
optionaloperator= (argument_type val)
 
optionaloperator= (rval_reference_type val)
 
optionaloperator= (none_t none_) BOOST_NOEXCEPT
 
 optional () BOOST_NOEXCEPT
 
 optional (none_t none_) BOOST_NOEXCEPT
 
 optional (argument_type val)
 
 optional (rval_reference_type val)
 
 optional (bool cond, argument_type val)
 
template<class U >
 optional (optional< U > const &rhs)
 
template<class U >
 optional (optional< U > &&rhs)
 
template<class Expr >
 optional (Expr &&expr, BOOST_DEDUCED_TYPENAME boost::disable_if_c< (boost::is_base_of< optional_detail::optional_tag, BOOST_DEDUCED_TYPENAME boost::decay< Expr >::type >::value)||boost::is_same< BOOST_DEDUCED_TYPENAME boost::decay< Expr >::type, none_t >::value >::type *=0)
 
 optional (optional const &rhs)
 
 optional (optional &&rhs) BOOST_NOEXCEPT_IF(
 
void swap (optional &arg) BOOST_NOEXCEPT_IF(
 
reference_const_type value () const &
 
reference_type value ()&
 
reference_type_of_temporary_wrapper value ()&&
 
template<class U >
value_type value_or (U &&v) const &
 
template<class U >
value_type value_or (U &&v)&&
 
template<typename F >
value_type value_or_eval (F f) const &
 
template<typename F >
value_type value_or_eval (F f)&&
 
 ~optional ()
 
- Public Member Functions inherited from boost::optional_detail::optional_base< T >
pointer_const_type get_ptr () const
 
pointer_type get_ptr ()
 
bool is_initialized () const
 
void reset () BOOST_NOEXCEPT
 
void reset (argument_type val)
 

Private Types

typedef optional_detail::optional_base< T > base
 

Additional Inherited Members

- Protected Types inherited from boost::optional_detail::optional_base< T >
typedef BOOST_DEDUCED_TYPENAME types::argument_type argument_type
 
typedef mpl::false_ is_not_reference_tag
 
typedef BOOST_DEDUCED_TYPENAME is_reference< T >::type is_reference_predicate
 
typedef mpl::true_ is_reference_tag
 
typedef BOOST_DEDUCED_TYPENAME types::pointer_const_type pointer_const_type
 
typedef BOOST_DEDUCED_TYPENAME types::pointer_type pointer_type
 
typedef BOOST_DEDUCED_TYPENAME types::reference_const_type reference_const_type
 
typedef BOOST_DEDUCED_TYPENAME types::reference_type reference_type
 
typedef BOOST_DEDUCED_TYPENAME types::reference_type_of_temporary_wrapper reference_type_of_temporary_wrapper
 
typedef BOOST_DEDUCED_TYPENAME types::rval_reference_type rval_reference_type
 
typedef T value_type
 
- Protected Member Functions inherited from boost::optional_detail::optional_base< T >
void assign (optional_base const &rhs)
 
void assign (optional_base &&rhs)
 
template<class U >
void assign (optional< U > const &rhs)
 
template<class U >
void assign (optional< U > &&rhs)
 
void assign (argument_type val)
 
void assign (rval_reference_type val)
 
void assign (none_t) BOOST_NOEXCEPT
 
template<class Expr , class ExprPtr >
void assign_expr (Expr &&expr, ExprPtr const *tag)
 
template<class Expr >
void assign_expr_to_initialized (Expr &&factory, in_place_factory_base const *tag)
 
template<class Expr >
void assign_expr_to_initialized (Expr &&factory, typed_in_place_factory_base const *tag)
 
template<class Expr >
void assign_expr_to_initialized (Expr &&expr, void const *)
 
void assign_value (argument_type val, is_not_reference_tag)
 
void assign_value (argument_type val, is_reference_tag)
 
void assign_value (rval_reference_type val, is_not_reference_tag)
 
void assign_value (rval_reference_type val, is_reference_tag)
 
void construct (argument_type val)
 
void construct (rval_reference_type val)
 
template<class Expr >
void construct (Expr &&factory, in_place_factory_base const *)
 
template<class Expr >
void construct (Expr &&factory, typed_in_place_factory_base const *)
 
template<class Expr >
void construct (Expr &&expr, void const *)
 
void destroy ()
 
template<class... Args>
void emplace_assign (Args &&...args)
 
reference_const_type get_impl () const
 
reference_type get_impl ()
 
pointer_const_type get_ptr_impl () const
 
pointer_type get_ptr_impl ()
 
 optional_base ()
 
 optional_base (none_t)
 
 optional_base (argument_type val)
 
 optional_base (rval_reference_type val)
 
 optional_base (bool cond, argument_type val)
 
 optional_base (optional_base const &rhs)
 
 optional_base (optional_base &&rhs)
 
template<class Expr , class PtrExpr >
 optional_base (Expr &&expr, PtrExpr const *tag)
 
 ~optional_base ()
 

Detailed Description

template<class T>
class boost::optional< T >

Definition at line 755 of file optional/optional.hpp.

Member Typedef Documentation

Definition at line 772 of file optional/optional.hpp.

template<class T>
typedef optional_detail::optional_base<T> boost::optional< T >::base
private

Definition at line 757 of file optional/optional.hpp.

Definition at line 771 of file optional/optional.hpp.

Definition at line 770 of file optional/optional.hpp.

Definition at line 765 of file optional/optional.hpp.

Definition at line 764 of file optional/optional.hpp.

Definition at line 768 of file optional/optional.hpp.

Definition at line 767 of file optional/optional.hpp.

template<class T>
typedef optional<T> boost::optional< T >::this_type

Definition at line 761 of file optional/optional.hpp.

Definition at line 763 of file optional/optional.hpp.

Constructor & Destructor Documentation

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

Definition at line 776 of file optional/optional.hpp.

template<class T>
boost::optional< T >::optional ( none_t  none_)
inline

Definition at line 780 of file optional/optional.hpp.

template<class T>
boost::optional< T >::optional ( argument_type  val)
inline

Definition at line 784 of file optional/optional.hpp.

template<class T>
boost::optional< T >::optional ( rval_reference_type  val)
inline

Definition at line 789 of file optional/optional.hpp.

template<class T>
boost::optional< T >::optional ( bool  cond,
argument_type  val 
)
inline

Definition at line 795 of file optional/optional.hpp.

template<class T>
template<class U >
boost::optional< T >::optional ( optional< U > const &  rhs)
inlineexplicit

Definition at line 803 of file optional/optional.hpp.

template<class T>
template<class U >
boost::optional< T >::optional ( optional< U > &&  rhs)
inlineexplicit

Definition at line 816 of file optional/optional.hpp.

Definition at line 839 of file optional/optional.hpp.

template<class T>
boost::optional< T >::optional ( optional< T > const &  rhs)
inline

Definition at line 855 of file optional/optional.hpp.

template<class T>
boost::optional< T >::optional ( optional< T > &&  rhs)
inline

Definition at line 860 of file optional/optional.hpp.

template<class T>
boost::optional< T >::~optional ( )
inline

Definition at line 867 of file optional/optional.hpp.

Member Function Documentation

template<class T>
template<class... Args>
void boost::optional< T >::emplace ( Args &&...  args)
inline

Definition at line 969 of file optional/optional.hpp.

template<class T>
reference_const_type boost::optional< T >::get ( ) const
inline

Definition at line 1004 of file optional/optional.hpp.

template<class T>
reference_type boost::optional< T >::get ( )
inline

Definition at line 1005 of file optional/optional.hpp.

template<class T>
reference_const_type boost::optional< T >::get_value_or ( reference_const_type  v) const
inline

Definition at line 1008 of file optional/optional.hpp.

template<class T>
reference_type boost::optional< T >::get_value_or ( reference_type  v)
inline

Definition at line 1009 of file optional/optional.hpp.

template<class T>
bool boost::optional< T >::operator! ( ) const
inline

Definition at line 1150 of file optional/optional.hpp.

template<class T>
reference_const_type boost::optional< T >::operator* ( ) const
inline

Definition at line 1021 of file optional/optional.hpp.

template<class T>
reference_type boost::optional< T >::operator* ( )
inline

Definition at line 1022 of file optional/optional.hpp.

template<class T>
reference_type_of_temporary_wrapper boost::optional< T >::operator* ( )
inline

Definition at line 1023 of file optional/optional.hpp.

template<class T>
pointer_const_type boost::optional< T >::operator-> ( ) const
inline

Definition at line 1014 of file optional/optional.hpp.

template<class T>
pointer_type boost::optional< T >::operator-> ( )
inline

Definition at line 1015 of file optional/optional.hpp.

Definition at line 880 of file optional/optional.hpp.

template<class T>
template<class U >
optional& boost::optional< T >::operator= ( optional< U > const &  rhs)
inline

Definition at line 901 of file optional/optional.hpp.

template<class T>
template<class U >
optional& boost::optional< T >::operator= ( optional< U > &&  rhs)
inline

Definition at line 912 of file optional/optional.hpp.

template<class T>
optional& boost::optional< T >::operator= ( optional< T > const &  rhs)
inline

Definition at line 922 of file optional/optional.hpp.

template<class T>
optional& boost::optional< T >::operator= ( optional< T > &&  rhs)
inline

Definition at line 930 of file optional/optional.hpp.

template<class T>
optional& boost::optional< T >::operator= ( argument_type  val)
inline

Definition at line 940 of file optional/optional.hpp.

template<class T>
optional& boost::optional< T >::operator= ( rval_reference_type  val)
inline

Definition at line 948 of file optional/optional.hpp.

template<class T>
optional& boost::optional< T >::operator= ( none_t  none_)
inline

Definition at line 959 of file optional/optional.hpp.

template<class T>
void boost::optional< T >::swap ( optional< T > &  arg)
inline

Definition at line 993 of file optional/optional.hpp.

template<class T>
reference_const_type boost::optional< T >::value ( void  ) const
inline

Definition at line 1030 of file optional/optional.hpp.

template<class T>
reference_type boost::optional< T >::value ( void  )
inline

Definition at line 1038 of file optional/optional.hpp.

template<class T>
reference_type_of_temporary_wrapper boost::optional< T >::value ( void  )
inline

Definition at line 1046 of file optional/optional.hpp.

template<class T>
template<class U >
value_type boost::optional< T >::value_or ( U &&  v) const
inline

Definition at line 1075 of file optional/optional.hpp.

template<class T>
template<class U >
value_type boost::optional< T >::value_or ( U &&  v)
inline

Definition at line 1084 of file optional/optional.hpp.

template<class T>
template<typename F >
value_type boost::optional< T >::value_or_eval ( f) const
inline

Definition at line 1123 of file optional/optional.hpp.

template<class T>
template<typename F >
value_type boost::optional< T >::value_or_eval ( f)
inline

Definition at line 1132 of file optional/optional.hpp.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:33