Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT > Singleton Reference

Stream wrapper for log records formatting. More...

#include <formatting_ostream_fwd.hpp>

Inheritance diagram for boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >:

Classes

class  sentry
 

Public Types

typedef CharT char_type
 Character type. More...
 
typedef TraitsT traits_type
 Character traits. More...
 
typedef AllocatorT allocator_type
 Memory allocator. More...
 
typedef
boost::log::aux::basic_ostringstreambuf
< char_type, traits_type,
allocator_type
streambuf_type
 Stream buffer type. More...
 
typedef streambuf_type::string_type string_type
 Target string type. More...
 
typedef std::basic_ostream
< char_type, traits_type
ostream_type
 Stream type. More...
 
typedef ostream_type::pos_type pos_type
 Stream position type. More...
 
typedef ostream_type::off_type off_type
 Stream offset type. More...
 
typedef ostream_type::int_type int_type
 Integer type for characters. More...
 
typedef ostream_type::failure failure
 
typedef ostream_type::fmtflags fmtflags
 
typedef ostream_type::iostate iostate
 
typedef ostream_type::openmode openmode
 
typedef ostream_type::seekdir seekdir
 
typedef ostream_type::Init Init
 
typedef ostream_type::event event
 
typedef
ostream_type::event_callback 
event_callback
 

Public Member Functions

 basic_formatting_ostream ()
 Default constructor. More...
 
 basic_formatting_ostream (string_type &str)
 Initializing constructor. More...
 
 ~basic_formatting_ostream ()
 Destructor. More...
 
void attach (string_type &str)
 Attaches the stream to the string. More...
 
void detach ()
 Detaches the stream from the string. More...
 
string_type const & str () const
 
ostream_typestream ()
 
ostream_type const & stream () const
 
fmtflags flags () const
 
fmtflags flags (fmtflags f)
 
fmtflags setf (fmtflags f)
 
fmtflags setf (fmtflags f, fmtflags mask)
 
void unsetf (fmtflags f)
 
std::streamsize precision () const
 
std::streamsize precision (std::streamsize p)
 
std::streamsize width () const
 
std::streamsize width (std::streamsize w)
 
std::locale getloc () const
 
std::locale imbue (std::locale const &loc)
 
long & iword (int index)
 
void *& pword (int index)
 
void register_callback (event_callback fn, int index)
 
bool operator! () const
 
iostate rdstate () const
 
void clear (iostate state=goodbit)
 
void setstate (iostate state)
 
bool good () const
 
bool eof () const
 
bool fail () const
 
bool bad () const
 
iostate exceptions () const
 
void exceptions (iostate s)
 
ostream_typetie () const
 
ostream_typetie (ostream_type *strm)
 
streambuf_typerdbuf () const
 
basic_formatting_ostreamcopyfmt (std::basic_ios< char_type, traits_type > &rhs)
 
basic_formatting_ostreamcopyfmt (basic_formatting_ostream &rhs)
 
char_type fill () const
 
char_type fill (char_type ch)
 
char narrow (char_type ch, char def) const
 
char_type widen (char ch) const
 
basic_formatting_ostreamflush ()
 
pos_type tellp ()
 
basic_formatting_ostreamseekp (pos_type pos)
 
basic_formatting_ostreamseekp (off_type off, std::ios_base::seekdir dir)
 
basic_formatting_ostreamput (char_type c)
 
template<typename OtherCharT >
aux::enable_if_char_type
< OtherCharT,
basic_formatting_ostream & >
::type 
put (OtherCharT c)
 
basic_formatting_ostreamwrite (const char_type *p, std::streamsize size)
 
template<typename OtherCharT >
aux::enable_if_char_type
< OtherCharT,
basic_formatting_ostream & >
::type 
write (const OtherCharT *p, std::streamsize size)
 
basic_formatting_ostreamoperator<< (ios_base_manip manip)
 
basic_formatting_ostreamoperator<< (basic_ios_manip manip)
 
basic_formatting_ostreamoperator<< (stream_manip manip)
 
basic_formatting_ostreamoperator<< (char c)
 
basic_formatting_ostreamoperator<< (const char *p)
 
basic_formatting_ostreamoperator<< (wchar_t c)
 
basic_formatting_ostreamoperator<< (const wchar_t *p)
 
basic_formatting_ostreamoperator<< (char16_t c)
 
basic_formatting_ostreamoperator<< (const char16_t *p)
 
basic_formatting_ostreamoperator<< (char32_t c)
 
basic_formatting_ostreamoperator<< (const char32_t *p)
 
basic_formatting_ostreamoperator<< (bool value)
 
basic_formatting_ostreamoperator<< (signed char value)
 
basic_formatting_ostreamoperator<< (unsigned char value)
 
basic_formatting_ostreamoperator<< (short value)
 
basic_formatting_ostreamoperator<< (unsigned short value)
 
basic_formatting_ostreamoperator<< (int value)
 
basic_formatting_ostreamoperator<< (unsigned int value)
 
basic_formatting_ostreamoperator<< (long value)
 
basic_formatting_ostreamoperator<< (unsigned long value)
 
basic_formatting_ostreamoperator<< (long long value)
 
basic_formatting_ostreamoperator<< (unsigned long long value)
 
basic_formatting_ostreamoperator<< (float value)
 
basic_formatting_ostreamoperator<< (double value)
 
basic_formatting_ostreamoperator<< (long double value)
 
basic_formatting_ostreamoperator<< (const void *value)
 
basic_formatting_ostreamoperator<< (std::basic_streambuf< char_type, traits_type > *buf)
 

Static Public Member Functions

static int xalloc ()
 
static bool sync_with_stdio (bool sync=true)
 

Static Public Attributes

static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
boolalpha = ostream_type::boolalpha
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
dec = ostream_type::dec
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
fixed = ostream_type::fixed
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
hex = ostream_type::hex
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
internal = ostream_type::internal
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
left = ostream_type::left
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
oct = ostream_type::oct
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
right = ostream_type::right
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
scientific = ostream_type::scientific
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
showbase = ostream_type::showbase
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
showpoint = ostream_type::showpoint
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
skipws = ostream_type::skipws
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
unitbuf = ostream_type::unitbuf
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
uppercase = ostream_type::uppercase
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
adjustfield = ostream_type::adjustfield
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
basefield = ostream_type::basefield
 
static
BOOST_CONSTEXPR_OR_CONST
fmtflags 
floatfield = ostream_type::floatfield
 
static
BOOST_CONSTEXPR_OR_CONST
iostate 
badbit = ostream_type::badbit
 
static
BOOST_CONSTEXPR_OR_CONST
iostate 
eofbit = ostream_type::eofbit
 
static
BOOST_CONSTEXPR_OR_CONST
iostate 
failbit = ostream_type::failbit
 
static
BOOST_CONSTEXPR_OR_CONST
iostate 
goodbit = ostream_type::goodbit
 
static
BOOST_CONSTEXPR_OR_CONST
openmode 
app = ostream_type::app
 
static
BOOST_CONSTEXPR_OR_CONST
openmode 
ate = ostream_type::ate
 
static
BOOST_CONSTEXPR_OR_CONST
openmode 
binary = ostream_type::binary
 
static
BOOST_CONSTEXPR_OR_CONST
openmode 
in = ostream_type::in
 
static
BOOST_CONSTEXPR_OR_CONST
openmode 
out = ostream_type::out
 
static
BOOST_CONSTEXPR_OR_CONST
openmode 
trunc = ostream_type::trunc
 
static
BOOST_CONSTEXPR_OR_CONST
seekdir 
beg = ostream_type::beg
 
static
BOOST_CONSTEXPR_OR_CONST
seekdir 
cur = ostream_type::cur
 
static
BOOST_CONSTEXPR_OR_CONST
seekdir 
end = ostream_type::end
 
static
BOOST_CONSTEXPR_OR_CONST event 
erase_event = ostream_type::erase_event
 
static
BOOST_CONSTEXPR_OR_CONST event 
imbue_event = ostream_type::imbue_event
 
static
BOOST_CONSTEXPR_OR_CONST event 
copyfmt_event = ostream_type::copyfmt_event
 

Friends

template<typename OtherCharT , typename OtherTraitsT , typename OtherAllocatorT >
aux::enable_if_char_type
< OtherCharT,
basic_formatting_ostream & >
::type 
operator<< (basic_formatting_ostream &strm, std::basic_string< OtherCharT, OtherTraitsT, OtherAllocatorT > const &str)
 
template<typename OtherCharT , typename OtherTraitsT >
aux::enable_if_char_type
< OtherCharT,
basic_formatting_ostream & >
::type 
operator<< (basic_formatting_ostream &strm, basic_string_literal< OtherCharT, OtherTraitsT > const &str)
 
template<typename OtherCharT , typename OtherTraitsT >
aux::enable_if_char_type
< OtherCharT,
basic_formatting_ostream & >
::type 
operator<< (basic_formatting_ostream &strm, basic_string_ref< OtherCharT, OtherTraitsT > const &str)
 

Detailed Description

template<typename CharT, typename TraitsT, typename AllocatorT>
singleton boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >

Stream wrapper for log records formatting.

Stream for log records formatting.

This stream wrapper is used by the library for log record formatting. It implements the standard string stream interface with a few differences:

  • It does not derive from standard types std::basic_ostream, std::basic_ios and std::ios_base, although it tries to implement their interfaces closely. There are a few small differences, mostly regarding rdbuf and str signatures, as well as the supported insertion operator overloads. The actual wrapped stream can be accessed through the stream methods.
  • By default, bool values are formatted using alphabetical representation rather than numeric.
  • The stream supports writing strings of character types different from the stream character type. The stream will perform character code conversion as needed using the imbued locale.
  • The stream operates on an external string object rather than on the embedded one. The string can be attached or detached from the stream dynamically.

Although basic_formatting_ostream does not derive from std::basic_ostream, users are not required to add special overloads of operator<< for it since the stream will by default reuse the operators for std::basic_ostream. However, one can define special overloads of operator<< for basic_formatting_ostream if a certain type needs special formatting when output to log.

Member Typedef Documentation

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef AllocatorT boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::allocator_type

Memory allocator.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef CharT boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::char_type

Character type.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::event boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::event
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::event_callback boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::event_callback
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::failure boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::failure
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::Init boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::Init
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::int_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::int_type

Integer type for characters.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::iostate boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::iostate
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::off_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::off_type

Stream offset type.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::openmode boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::openmode
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef std::basic_ostream< char_type, traits_type > boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::ostream_type

Stream type.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::pos_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::pos_type

Stream position type.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef ostream_type::seekdir boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::seekdir
template<typename CharT, typename TraitsT, typename AllocatorT>
typedef boost::log::aux::basic_ostringstreambuf< char_type, traits_type, allocator_type > boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::streambuf_type

Stream buffer type.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef streambuf_type::string_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::string_type

Target string type.

template<typename CharT, typename TraitsT, typename AllocatorT>
typedef TraitsT boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::traits_type

Character traits.

Constructor & Destructor Documentation

template<typename CharT, typename TraitsT, typename AllocatorT>
boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::basic_formatting_ostream ( )
inline

Default constructor.

Creates an empty record that is equivalent to the invalid record handle. The stream capability is not available after construction.

Postcondition
!*this == true
template<typename CharT, typename TraitsT, typename AllocatorT>
boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::basic_formatting_ostream ( string_type str)
inlineexplicit

Initializing constructor.

Attaches the string to the constructed stream. The string will be used to store the formatted characters.

Postcondition
!*this == false
Parameters
strThe string buffer to attach.
template<typename CharT, typename TraitsT, typename AllocatorT>
boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::~basic_formatting_ostream ( )
inline

Destructor.

Destroys the record, releases any sinks and attribute values that were involved in processing this record.

Member Function Documentation

template<typename CharT, typename TraitsT, typename AllocatorT>
void boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::attach ( string_type str)
inline

Attaches the stream to the string.

The string will be used to store the formatted characters.

Parameters
strThe string buffer to attach.
template<typename CharT, typename TraitsT, typename AllocatorT>
bool boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::bad ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
void boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::clear ( iostate  state = goodbit)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::copyfmt ( std::basic_ios< char_type, traits_type > &  rhs)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::copyfmt ( basic_formatting_ostream< CharT, TraitsT, AllocatorT > &  rhs)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
void boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::detach ( )
inline

Detaches the stream from the string.

Any buffered data is flushed to the string.

template<typename CharT, typename TraitsT, typename AllocatorT>
bool boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::eof ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
iostate boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::exceptions ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
void boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::exceptions ( iostate  s)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
bool boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fail ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
char_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fill ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
char_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fill ( char_type  ch)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flags ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flags ( fmtflags  f)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
std::locale boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::getloc ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
bool boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::good ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
std::locale boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::imbue ( std::locale const &  loc)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
long& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::iword ( int  index)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
char boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::narrow ( char_type  ch,
char  def 
) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
bool boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator! ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( ios_base_manip  manip)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( basic_ios_manip  manip)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( stream_manip  manip)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( char  c)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( const char *  p)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( wchar_t  c)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( const wchar_t *  p)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( char16_t  c)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( const char16_t *  p)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( char32_t  c)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( const char32_t *  p)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( bool  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( signed char  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( unsigned char  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( short  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( unsigned short  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( int  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( unsigned int  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( long  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( unsigned long  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( long long  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( unsigned long long  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( float  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( double  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( long double  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( const void *  value)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::operator<< ( std::basic_streambuf< char_type, traits_type > *  buf)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
std::streamsize boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::precision ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
std::streamsize boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::precision ( std::streamsize  p)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::put ( char_type  c)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
template<typename OtherCharT >
aux::enable_if_char_type< OtherCharT, basic_formatting_ostream& >::type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::put ( OtherCharT  c)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
void*& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::pword ( int  index)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
streambuf_type* boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::rdbuf ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
iostate boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::rdstate ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
void boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::register_callback ( event_callback  fn,
int  index 
)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::seekp ( pos_type  pos)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::seekp ( off_type  off,
std::ios_base::seekdir  dir 
)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::setf ( fmtflags  f)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::setf ( fmtflags  f,
fmtflags  mask 
)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
void boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::setstate ( iostate  state)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
string_type const& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::str ( ) const
inline
Returns
Reference to the attached string. The string must be attached before calling this method.
template<typename CharT, typename TraitsT, typename AllocatorT>
ostream_type& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::stream ( )
inline
Returns
Reference to the wrapped stream

Referenced by boost::basic_formatting_ostream< native_char_type >::copyfmt().

template<typename CharT, typename TraitsT, typename AllocatorT>
ostream_type const& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::stream ( ) const
inline
Returns
Reference to the wrapped stream
template<typename CharT, typename TraitsT, typename AllocatorT>
static bool boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::sync_with_stdio ( bool  sync = true)
inlinestatic
template<typename CharT, typename TraitsT, typename AllocatorT>
pos_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::tellp ( )
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
ostream_type* boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::tie ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
ostream_type* boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::tie ( ostream_type strm)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
void boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::unsetf ( fmtflags  f)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
char_type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::widen ( char  ch) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
std::streamsize boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::width ( ) const
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
std::streamsize boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::width ( std::streamsize  w)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
basic_formatting_ostream& boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::write ( const char_type p,
std::streamsize  size 
)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
template<typename OtherCharT >
aux::enable_if_char_type< OtherCharT, basic_formatting_ostream& >::type boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::write ( const OtherCharT *  p,
std::streamsize  size 
)
inline
template<typename CharT, typename TraitsT, typename AllocatorT>
static int boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::xalloc ( )
inlinestatic

Friends And Related Function Documentation

template<typename CharT, typename TraitsT, typename AllocatorT>
template<typename OtherCharT , typename OtherTraitsT , typename OtherAllocatorT >
aux::enable_if_char_type< OtherCharT, basic_formatting_ostream& >::type operator<< ( basic_formatting_ostream< CharT, TraitsT, AllocatorT > &  strm,
std::basic_string< OtherCharT, OtherTraitsT, OtherAllocatorT > const &  str 
)
friend
template<typename CharT, typename TraitsT, typename AllocatorT>
template<typename OtherCharT , typename OtherTraitsT >
aux::enable_if_char_type< OtherCharT, basic_formatting_ostream& >::type operator<< ( basic_formatting_ostream< CharT, TraitsT, AllocatorT > &  strm,
basic_string_literal< OtherCharT, OtherTraitsT > const &  str 
)
friend
template<typename CharT, typename TraitsT, typename AllocatorT>
template<typename OtherCharT , typename OtherTraitsT >
aux::enable_if_char_type< OtherCharT, basic_formatting_ostream& >::type operator<< ( basic_formatting_ostream< CharT, TraitsT, AllocatorT > &  strm,
basic_string_ref< OtherCharT, OtherTraitsT > const &  str 
)
friend

Member Data Documentation

template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::adjustfield = ostream_type::adjustfield
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::openmode boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::app = ostream_type::app
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::openmode boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::ate = ostream_type::ate
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::iostate boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::badbit = ostream_type::badbit
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::basefield = ostream_type::basefield
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::seekdir boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::beg = ostream_type::beg
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::openmode boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::binary = ostream_type::binary
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::boolalpha = ostream_type::boolalpha
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::event boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::copyfmt_event = ostream_type::copyfmt_event
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::seekdir boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::cur = ostream_type::cur
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::dec = ostream_type::dec
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::seekdir boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::end = ostream_type::end
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::iostate boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::eofbit = ostream_type::eofbit
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::event boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::erase_event = ostream_type::erase_event
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::iostate boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::failbit = ostream_type::failbit
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fixed = ostream_type::fixed
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::floatfield = ostream_type::floatfield
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::iostate boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::goodbit = ostream_type::goodbit
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::hex = ostream_type::hex
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::event boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::imbue_event = ostream_type::imbue_event
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::openmode boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::in = ostream_type::in
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::internal = ostream_type::internal
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::left = ostream_type::left
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::oct = ostream_type::oct
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::openmode boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::out = ostream_type::out
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::right = ostream_type::right
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::scientific = ostream_type::scientific
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::showbase = ostream_type::showbase
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::showpoint = ostream_type::showpoint
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::skipws = ostream_type::skipws
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::openmode boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::trunc = ostream_type::trunc
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::unitbuf = ostream_type::unitbuf
static
template<typename CharT, typename TraitsT, typename AllocatorT>
BOOST_CONSTEXPR_OR_CONST basic_formatting_ostream< CharT, TraitsT, AllocatorT >::fmtflags boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::uppercase = ostream_type::uppercase
static

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