GNU g++  v5.2.1
GNU Standard C++
__gnu_debug::_Error_formatter Class Reference

#include <formatter.h>

Collaboration diagram for __gnu_debug::_Error_formatter:

Classes

struct  _Is_iterator
 
struct  _Is_sequence
 
struct  _Parameter
 

Public Member Functions

_GLIBCXX_NORETURN void _M_error () const
 
const _Error_formatter_M_integer (long __value, const char *__name=0) const
 
template<typename _Iterator >
const _Error_formatter_M_iterator (const _Iterator &__it, const char *__name=0) const
 
const _Error_formatter_M_message (const char *__text) const
 
const _Error_formatter_M_message (_Debug_msg_id __id) const throw ()
 
template<typename _Sequence >
const _Error_formatter_M_sequence (const _Sequence &__seq, const char *__name=0) const
 
const _Error_formatter_M_string (const char *__value, const char *__name=0) const
 

Static Public Member Functions

static _Error_formatter _M_at (const char *__file, std::size_t __line)
 

Private Types

enum  { __max_parameters = 9 }
 
enum  { _M_indent = 4 }
 
enum  _Constness {
  __unknown_constness,
  __const_iterator,
  __mutable_iterator,
  __last_constness
}
 Whether an iterator is constant, mutable, or unknown. More...
 
enum  _Iterator_state {
  __unknown_state,
  __singular,
  __begin,
  __middle,
  __end,
  __before_begin,
  __last_state
}
 

Private Member Functions

 _Error_formatter (const char *__file, std::size_t __line)
 
template<typename _Tp >
void _M_format_word (char *, int, const char *, _Tp) const throw ()
 
void _M_get_max_length () const throw ()
 
void _M_print_string (const char *__string) const
 
void _M_print_word (const char *__word) const
 

Private Attributes

std::size_t _M_column
 
const char * _M_file
 
bool _M_first_line
 
std::size_t _M_line
 
std::size_t _M_max_length
 
std::size_t _M_num_parameters
 
_Parameter _M_parameters [__max_parameters]
 
const char * _M_text
 
bool _M_wordwrap
 

Friends

struct _Parameter
 

Member Enumeration Documentation

anonymous enum
private
Enumerator
__max_parameters 
anonymous enum
private
Enumerator
_M_indent 

Whether an iterator is constant, mutable, or unknown.

Enumerator
__unknown_constness 
__const_iterator 
__mutable_iterator 
__last_constness 
Enumerator
__unknown_state 
__singular 
__begin 
__middle 
__end 
__before_begin 
__last_state 

Constructor & Destructor Documentation

__gnu_debug::_Error_formatter::_Error_formatter ( const char *  __file,
std::size_t  __line 
)
inlineprivate

Member Function Documentation

static _Error_formatter __gnu_debug::_Error_formatter::_M_at ( const char *  __file,
std::size_t  __line 
)
inlinestatic
_GLIBCXX_NORETURN void __gnu_debug::_Error_formatter::_M_error ( ) const
template<typename _Tp >
void __gnu_debug::_Error_formatter::_M_format_word ( char *  ,
int  ,
const char *  ,
_Tp   
) const
throw (
)
private
void __gnu_debug::_Error_formatter::_M_get_max_length ( ) const
throw (
)
private
const _Error_formatter& __gnu_debug::_Error_formatter::_M_integer ( long  __value,
const char *  __name = 0 
) const
inline
template<typename _Iterator >
const _Error_formatter& __gnu_debug::_Error_formatter::_M_iterator ( const _Iterator &  __it,
const char *  __name = 0 
) const
inline
const _Error_formatter& __gnu_debug::_Error_formatter::_M_message ( const char *  __text) const
inline
const _Error_formatter& __gnu_debug::_Error_formatter::_M_message ( _Debug_msg_id  __id) const
throw (
)
void __gnu_debug::_Error_formatter::_M_print_string ( const char *  __string) const
private
void __gnu_debug::_Error_formatter::_M_print_word ( const char *  __word) const
private
template<typename _Sequence >
const _Error_formatter& __gnu_debug::_Error_formatter::_M_sequence ( const _Sequence &  __seq,
const char *  __name = 0 
) const
inline
const _Error_formatter& __gnu_debug::_Error_formatter::_M_string ( const char *  __value,
const char *  __name = 0 
) const
inline

Friends And Related Function Documentation

friend struct _Parameter
friend

Member Data Documentation

std::size_t __gnu_debug::_Error_formatter::_M_column
mutableprivate
const char* __gnu_debug::_Error_formatter::_M_file
private
bool __gnu_debug::_Error_formatter::_M_first_line
mutableprivate
std::size_t __gnu_debug::_Error_formatter::_M_line
private
std::size_t __gnu_debug::_Error_formatter::_M_max_length
mutableprivate
std::size_t __gnu_debug::_Error_formatter::_M_num_parameters
mutableprivate
_Parameter __gnu_debug::_Error_formatter::_M_parameters[__max_parameters]
mutableprivate
const char* __gnu_debug::_Error_formatter::_M_text
mutableprivate
bool __gnu_debug::_Error_formatter::_M_wordwrap
mutableprivate

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