Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::system::error_condition Class Reference

#include <error_code.hpp>

Public Types

typedef void(* unspecified_bool_type )()
 

Public Member Functions

 error_condition () BOOST_NOEXCEPT
 
 error_condition (int val, const error_category &cat) BOOST_NOEXCEPT
 
template<class ErrorConditionEnum >
 error_condition (ErrorConditionEnum e, typename boost::enable_if< is_error_condition_enum< ErrorConditionEnum > >::type *=0) BOOST_NOEXCEPT
 
void assign (int val, const error_category &cat) BOOST_NOEXCEPT
 
template<typename ErrorConditionEnum >
boost::enable_if
< is_error_condition_enum
< ErrorConditionEnum >
, error_condition >::type
operator= (ErrorConditionEnum val) BOOST_NOEXCEPT
 
void clear () BOOST_NOEXCEPT
 
int value () const BOOST_NOEXCEPT
 
const error_categorycategory () const BOOST_NOEXCEPT
 
std::string message () const
 
 operator unspecified_bool_type () const BOOST_NOEXCEPT
 
bool operator! () const BOOST_NOEXCEPT
 

Static Public Member Functions

static void unspecified_bool_true ()
 

Friends

bool operator== (const error_condition &lhs, const error_condition &rhs) BOOST_NOEXCEPT
 
bool operator< (const error_condition &lhs, const error_condition &rhs) BOOST_NOEXCEPT
 

Member Typedef Documentation

typedef void(* boost::system::error_condition::unspecified_bool_type)()

Constructor & Destructor Documentation

boost::system::error_condition::error_condition ( )
inline
boost::system::error_condition::error_condition ( int  val,
const error_category cat 
)
inline
template<class ErrorConditionEnum >
boost::system::error_condition::error_condition ( ErrorConditionEnum  e,
typename boost::enable_if< is_error_condition_enum< ErrorConditionEnum > >::type = 0 
)
inline

Member Function Documentation

void boost::system::error_condition::assign ( int  val,
const error_category cat 
)
inline

References boost::phoenix::val().

const error_category& boost::system::error_condition::category ( ) const
inline
void boost::system::error_condition::clear ( void  )
inline
std::string boost::system::error_condition::message ( ) const
inline
boost::system::error_condition::operator unspecified_bool_type ( ) const
inline
bool boost::system::error_condition::operator! ( ) const
inline
template<typename ErrorConditionEnum >
boost::enable_if<is_error_condition_enum<ErrorConditionEnum>, error_condition>::type& boost::system::error_condition::operator= ( ErrorConditionEnum  val)
inline
static void boost::system::error_condition::unspecified_bool_true ( )
inlinestatic
int boost::system::error_condition::value ( ) const
inline

Referenced by message().

Friends And Related Function Documentation

bool operator< ( const error_condition lhs,
const error_condition rhs 
)
friend
bool operator== ( const error_condition lhs,
const error_condition rhs 
)
friend

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