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

class optional More...

#include <optional.hpp>

Public Types

typedef T value_type
 

Public Member Functions

optional_constexpr bool has_value () const optional_noexcept
 
optional_constexpr operator safe_bool () const optional_noexcept
 
optional_constexpr value_type const & operator* () const optional_ref_qual
 
optional_constexpr14 value_typeoperator* () optional_ref_qual
 
optional_constexpr value_type const * operator-> () const
 
optional_constexpr14 value_typeoperator-> ()
 
optionaloperator= (nullopt_t) optional_noexcept
 
optionaloperator= (optional const &rhs)
 
optional_constexpr optional () optional_noexcept
 
optional_constexpr optional (nullopt_t) optional_noexcept
 
 optional (optional const &rhs)
 
optional_constexpr optional (value_type const &value)
 
void reset () optional_noexcept
 
void swap (optional &rhs)
 
optional_constexpr14 value_type const & value () const optional_ref_qual
 
optional_constexpr14 value_typevalue () optional_ref_qual
 
template<class U >
optional_constexpr value_type value_or (U const &v) const
 
 ~optional ()
 

Private Types

typedef void(optional::* safe_bool) () const
 

Private Member Functions

template<typename V >
void initialize (V const &value)
 
void this_type_does_not_support_comparisons () const
 

Private Attributes

detail::storage_t< value_typecontained
 
bool has_value_
 

Detailed Description

template<typename T>
class BT::optional_lite::optional< T >

class optional

optional

Definition at line 345 of file optional.hpp.

Member Typedef Documentation

template<typename T>
typedef void(optional::* BT::optional_lite::optional< T >::safe_bool) () const
private

Definition at line 669 of file optional.hpp.

template<typename T>
typedef T BT::optional_lite::optional< T >::value_type

Definition at line 672 of file optional.hpp.

Constructor & Destructor Documentation

template<typename T>
optional_constexpr BT::optional_lite::optional< T >::optional ( )
inline

Definition at line 674 of file optional.hpp.

template<typename T>
optional_constexpr BT::optional_lite::optional< T >::optional ( nullopt_t  )
inline

Definition at line 679 of file optional.hpp.

template<typename T>
BT::optional_lite::optional< T >::optional ( optional< T > const &  rhs)
inline

Definition at line 684 of file optional.hpp.

template<typename T>
optional_constexpr BT::optional_lite::optional< T >::optional ( value_type const &  value)
inline

Definition at line 700 of file optional.hpp.

template<typename T>
BT::optional_lite::optional< T >::~optional ( )
inline

Definition at line 726 of file optional.hpp.

Member Function Documentation

template<typename T>
optional_constexpr bool BT::optional_lite::optional< T >::has_value ( ) const
inline

Definition at line 854 of file optional.hpp.

template<typename T>
template<typename V >
void BT::optional_lite::optional< T >::initialize ( V const &  value)
inlineprivate

Definition at line 927 of file optional.hpp.

template<typename T>
optional_constexpr BT::optional_lite::optional< T >::operator safe_bool ( ) const
inline

Definition at line 848 of file optional.hpp.

template<typename T>
optional_constexpr value_type const& BT::optional_lite::optional< T >::operator* ( ) const
inline

Definition at line 816 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type& BT::optional_lite::optional< T >::operator* ( )
inline

Definition at line 822 of file optional.hpp.

template<typename T>
optional_constexpr value_type const* BT::optional_lite::optional< T >::operator-> ( ) const
inline

Definition at line 804 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type* BT::optional_lite::optional< T >::operator-> ( )
inline

Definition at line 810 of file optional.hpp.

template<typename T>
optional& BT::optional_lite::optional< T >::operator= ( nullopt_t  )
inline

Definition at line 734 of file optional.hpp.

template<typename T>
optional& BT::optional_lite::optional< T >::operator= ( optional< T > const &  rhs)
inline

Definition at line 740 of file optional.hpp.

template<typename T>
void BT::optional_lite::optional< T >::reset ( )
inline

Definition at line 915 of file optional.hpp.

template<typename T>
void BT::optional_lite::optional< T >::swap ( optional< T > &  rhs)
inline

Definition at line 791 of file optional.hpp.

template<typename T>
void BT::optional_lite::optional< T >::this_type_does_not_support_comparisons ( ) const
inlineprivate

Definition at line 924 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type const& BT::optional_lite::optional< T >::value ( ) const
inline

Definition at line 859 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type& BT::optional_lite::optional< T >::value ( )
inline

Definition at line 867 of file optional.hpp.

template<typename T>
template<class U >
optional_constexpr value_type BT::optional_lite::optional< T >::value_or ( U const &  v) const
inline

Definition at line 906 of file optional.hpp.

Member Data Documentation

template<typename T>
detail::storage_t< value_type > BT::optional_lite::optional< T >::contained
private

Definition at line 947 of file optional.hpp.

template<typename T>
bool BT::optional_lite::optional< T >::has_value_
private

Definition at line 946 of file optional.hpp.


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


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 04:01:55