Silicium
Public Types | Public Member Functions | List of all members
Si::error_or< Value, Error > Struct Template Reference

#include <error_or.hpp>

Public Types

typedef Value value_type
 

Public Member Functions

 error_or () BOOST_NOEXCEPT
 
template<class ConvertibleToValue , class = typename std::enable_if<std::is_convertible<ConvertibleToValue, Value>::value, void>::type>
 error_or (ConvertibleToValue &&value) BOOST_NOEXCEPT
 
 error_or (Value &&value) BOOST_NOEXCEPT
 
 error_or (Value const &value)
 
 error_or (Error error) BOOST_NOEXCEPT
 
 error_or (error_or const &other)
 
 error_or (error_or &&other) BOOST_NOEXCEPT
 
error_oroperator= (error_or &&other) BOOST_NOEXCEPT
 
error_oroperator= (error_or const &other)
 
error_oroperator= (Value &&other) BOOST_NOEXCEPT
 
error_oroperator= (Value const &other)
 
 ~error_or () BOOST_NOEXCEPT
 
bool is_error () const BOOST_NOEXCEPT
 
Error error () const BOOST_NOEXCEPT
 
void throw_if_error () const
 
Value & get ()
 
Value const & get () const
 
Value && move_value ()
 
Value * get_ptr () BOOST_NOEXCEPT
 
Value const * get_ptr () const BOOST_NOEXCEPT
 
optional< Value > get_optional ()
 
template<class ComparableToValue >
bool equals (error_or< ComparableToValue, Error > const &other) const
 
template<class ConvertibleToValue , class = typename std::enable_if<std::is_convertible<ConvertibleToValue, Value>::value, void>::type>
bool equals (ConvertibleToValue const &right) const
 
bool equals (Error const &right) const
 

Member Typedef Documentation

template<class Value, class Error = boost::system::error_code>
typedef Value Si::error_or< Value, Error >::value_type

Constructor & Destructor Documentation

template<class Value, class Error = boost::system::error_code>
Si::error_or< Value, Error >::error_or ( )
inline
template<class Value, class Error = boost::system::error_code>
template<class ConvertibleToValue , class = typename std::enable_if<std::is_convertible<ConvertibleToValue, Value>::value, void>::type>
Si::error_or< Value, Error >::error_or ( ConvertibleToValue &&  value)
inline
template<class Value, class Error = boost::system::error_code>
Si::error_or< Value, Error >::error_or ( Value &&  value)
inline
template<class Value, class Error = boost::system::error_code>
Si::error_or< Value, Error >::error_or ( Value const &  value)
inline
template<class Value, class Error = boost::system::error_code>
Si::error_or< Value, Error >::error_or ( Error  error)
inline
template<class Value, class Error = boost::system::error_code>
Si::error_or< Value, Error >::error_or ( error_or< Value, Error > const &  other)
inline
template<class Value, class Error = boost::system::error_code>
Si::error_or< Value, Error >::error_or ( error_or< Value, Error > &&  other)
inline
template<class Value, class Error = boost::system::error_code>
Si::error_or< Value, Error >::~error_or ( )
inline

Member Function Documentation

template<class Value, class Error = boost::system::error_code>
template<class ComparableToValue >
bool Si::error_or< Value, Error >::equals ( error_or< ComparableToValue, Error > const &  other) const
inline
template<class Value, class Error = boost::system::error_code>
template<class ConvertibleToValue , class = typename std::enable_if<std::is_convertible<ConvertibleToValue, Value>::value, void>::type>
bool Si::error_or< Value, Error >::equals ( ConvertibleToValue const &  right) const
inline
template<class Value, class Error = boost::system::error_code>
bool Si::error_or< Value, Error >::equals ( Error const &  right) const
inline
template<class Value, class Error = boost::system::error_code>
Error Si::error_or< Value, Error >::error ( ) const
inline
template<class Value, class Error = boost::system::error_code>
Value& Si::error_or< Value, Error >::get ( )
inline
template<class Value, class Error = boost::system::error_code>
Value const& Si::error_or< Value, Error >::get ( ) const
inline
template<class Value, class Error = boost::system::error_code>
optional<Value> Si::error_or< Value, Error >::get_optional ( )
inline
template<class Value, class Error = boost::system::error_code>
Value* Si::error_or< Value, Error >::get_ptr ( )
inline
template<class Value, class Error = boost::system::error_code>
Value const* Si::error_or< Value, Error >::get_ptr ( ) const
inline
template<class Value, class Error = boost::system::error_code>
bool Si::error_or< Value, Error >::is_error ( ) const
inline
template<class Value, class Error = boost::system::error_code>
Value&& Si::error_or< Value, Error >::move_value ( )
inline
template<class Value, class Error = boost::system::error_code>
error_or& Si::error_or< Value, Error >::operator= ( error_or< Value, Error > &&  other)
inline
template<class Value, class Error = boost::system::error_code>
error_or& Si::error_or< Value, Error >::operator= ( error_or< Value, Error > const &  other)
inline
template<class Value, class Error = boost::system::error_code>
error_or& Si::error_or< Value, Error >::operator= ( Value &&  other)
inline
template<class Value, class Error = boost::system::error_code>
error_or& Si::error_or< Value, Error >::operator= ( Value const &  other)
inline
template<class Value, class Error = boost::system::error_code>
void Si::error_or< Value, Error >::throw_if_error ( ) const
inline

Member Data Documentation

template<class Value, class Error = boost::system::error_code>
category_type const* Si::error_or< Value, Error >::category
template<class Value, class Error = boost::system::error_code>
std::array<char, sizeof(Value)> Si::error_or< Value, Error >::value_

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