Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
internal::formatbuf< Char > Class Template Reference

#include <ostream.h>

Inheritance diagram for internal::formatbuf< Char >:

Public Member Functions

 formatbuf (basic_buffer< Char > &buffer)
 

Protected Member Functions

int_type overflow (int_type ch=traits_type::eof()) FMT_OVERRIDE
 
std::streamsize xsputn (const Char *s, std::streamsize count) FMT_OVERRIDE
 

Private Types

typedef std::basic_streambuf< Char >::int_type int_type
 
typedef std::basic_streambuf< Char >::traits_type traits_type
 

Private Attributes

basic_buffer< Char > & buffer_
 

Detailed Description

template<class Char>
class internal::formatbuf< Char >

Definition at line 18 of file ostream.h.

Member Typedef Documentation

template<class Char>
typedef std::basic_streambuf<Char>::int_type internal::formatbuf< Char >::int_type
private

Definition at line 20 of file ostream.h.

template<class Char>
typedef std::basic_streambuf<Char>::traits_type internal::formatbuf< Char >::traits_type
private

Definition at line 21 of file ostream.h.

Constructor & Destructor Documentation

template<class Char>
internal::formatbuf< Char >::formatbuf ( basic_buffer< Char > &  buffer)
inline

Definition at line 26 of file ostream.h.

26 : buffer_(buffer) {}
basic_buffer< Char > & buffer_
Definition: ostream.h:23

Member Function Documentation

template<class Char>
int_type internal::formatbuf< Char >::overflow ( int_type  ch = traits_type::eof())
inlineprotected

Definition at line 36 of file ostream.h.

36  {
37  if (!traits_type::eq_int_type(ch, traits_type::eof()))
38  buffer_.push_back(static_cast<Char>(ch));
39  return ch;
40  }
void push_back(const T &value)
Definition: core.h:278
basic_buffer< Char > & buffer_
Definition: ostream.h:23
template<class Char>
std::streamsize internal::formatbuf< Char >::xsputn ( const Char *  s,
std::streamsize  count 
)
inlineprotected

Definition at line 42 of file ostream.h.

42  {
43  buffer_.append(s, s + count);
44  return count;
45  }
void append(const U *begin, const U *end)
Definition: format.h:394
basic_buffer< Char > & buffer_
Definition: ostream.h:23
static QCString * s
Definition: config.cpp:1042

Member Data Documentation

template<class Char>
basic_buffer<Char>& internal::formatbuf< Char >::buffer_
private

Definition at line 23 of file ostream.h.


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