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 charname () 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 
208  : uintptr_t
209  { // imaginary addresses for Standard error_category objects
210  _Future_addr = 1,
211  _Generic_addr = 3,
212  _Iostream_addr = 5,
213  _System_addr = 7
214  };
unsigned int uintptr_t
Definition: vadefs.h:30
Definition: system_error:212
Definition: system_error:210
Definition: system_error:213
Definition: system_error:211

Constructor & Destructor Documentation

error_category::error_category ( )
inline
166  { // default constructor
167  _Addr = reinterpret_cast<uintptr_t>(this);
168  }
uintptr_t _Addr
Definition: system_error:206
unsigned int uintptr_t
Definition: vadefs.h:30
virtual error_category::~error_category ( )
inlinevirtual
171  { // destroy the object
172  }
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.

445  { // make error_condition for error code
446  return (error_condition(_Errval, *this));
447  }
Definition: system_error:291
bool error_category::equivalent ( int  _Errval,
const error_condition _Cond 
) const
inlinevirtual
452  { // test if error code same condition
453  return (default_error_condition(_Errval) == _Cond);
454  }
virtual error_condition default_error_condition(int _Errval) const _NOEXCEPT
Definition: system_error:444
bool error_category::equivalent ( const error_code _Code,
int  _Errval 
) const
inlinevirtual
459  { // test if conditions same for this category
460  return (*this == _Code.category() && _Code.value() == _Errval);
461  }
int value() const _NOEXCEPT
Definition: system_error:263
const error_category & category() const _NOEXCEPT
Definition: system_error:268
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
193  { // compare categories for inequality
194  return (!(*this == _Right));
195  }
bool error_category::operator< ( const error_category _Right) const
inline
198  { // compare categories for order
199  return (_Addr < _Right._Addr);
200  }
uintptr_t _Addr
Definition: system_error:206
error_category& error_category::operator= ( const error_category )
delete
bool error_category::operator== ( const error_category _Right) const
inline
188  { // compare categories for equality
189  return (_Addr == _Right._Addr);
190  }
uintptr_t _Addr
Definition: system_error:206

Member Data Documentation

uintptr_t error_category::_Addr
protected

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