STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Types | Protected Attributes | List of all members
error_category Class Referenceabstract
Inheritance diagram for error_category:
_Generic_error_category _System_error_category _Future_error_category _Iostream_error_category

Public Member Functions

 error_category () _NOEXCEPT
 
virtual ~error_category () _NOEXCEPT
 
virtual const char * name () const _NOEXCEPT=0
 
virtual string message (int _Errval) const =0
 
virtual error_condition default_error_condition (int _Errval) const _NOEXCEPT
 
virtual bool equivalent (int _Errval, const error_condition &_Cond) const _NOEXCEPT
 
virtual bool equivalent (const error_code &_Code, int _Errval) const _NOEXCEPT
 
bool operator== (const error_category &_Right) const _NOEXCEPT
 
bool operator!= (const error_category &_Right) const _NOEXCEPT
 
bool operator< (const error_category &_Right) const _NOEXCEPT
 
 error_category (const error_category &)=delete
 
error_categoryoperator= (const error_category &)=delete
 

Protected Types

enum  : uintptr_t { _Future_addr = 1, _Generic_addr = 3, _Iostream_addr = 5, _System_addr = 7 }
 

Protected Attributes

uintptr_t _Addr
 

Member Enumeration Documentation

anonymous enum : uintptr_t
protected
Enumerator
_Future_addr 
_Generic_addr 
_Iostream_addr 
_System_addr 
211  : uintptr_t
212  { // imaginary addresses for Standard error_category objects
213  _Future_addr = 1,
214  _Generic_addr = 3,
215  _Iostream_addr = 5,
216  _System_addr = 7
217  };
unsigned int uintptr_t
Definition: vadefs.h:30
Definition: system_error:216
Definition: system_error:215
Definition: system_error:214
Definition: system_error:213

Constructor & Destructor Documentation

error_category::error_category ( )
inline
169  { // default constructor
170  _Addr = reinterpret_cast<uintptr_t>(this);
171  }
uintptr_t _Addr
Definition: system_error:209
unsigned int uintptr_t
Definition: vadefs.h:30
virtual error_category::~error_category ( )
inlinevirtual
174  { // destroy the object
175  }
error_category::error_category ( const error_category )
delete

Member Function Documentation

error_condition error_category::default_error_condition ( int  _Errval) const
inlinevirtual

Reimplemented in _System_error_category.

448  { // make error_condition for error code
449  return (error_condition(_Errval, *this));
450  }
Definition: system_error:294
bool error_category::equivalent ( int  _Errval,
const error_condition _Cond 
) const
inlinevirtual
455  { // test if error code same condition
456  return (default_error_condition(_Errval) == _Cond);
457  }
virtual error_condition default_error_condition(int _Errval) const _NOEXCEPT
Definition: system_error:447
bool error_category::equivalent ( const error_code _Code,
int  _Errval 
) const
inlinevirtual
462  { // test if conditions same for this category
463  return (*this == _Code.category() && _Code.value() == _Errval);
464  }
int value() const _NOEXCEPT
Definition: system_error:266
const error_category & category() const _NOEXCEPT
Definition: system_error:271
virtual string error_category::message ( int  _Errval) const
pure virtual
virtual const char* error_category::name ( ) const
pure virtual
bool error_category::operator!= ( const error_category _Right) const
inline
196  { // compare categories for inequality
197  return (!(*this == _Right));
198  }
bool error_category::operator< ( const error_category _Right) const
inline
201  { // compare categories for order
202  return (_Addr < _Right._Addr);
203  }
uintptr_t _Addr
Definition: system_error:209
error_category& error_category::operator= ( const error_category )
delete
bool error_category::operator== ( const error_category _Right) const
inline
191  { // compare categories for equality
192  return (_Addr == _Right._Addr);
193  }
uintptr_t _Addr
Definition: system_error:209

Member Data Documentation

uintptr_t error_category::_Addr
protected

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