Class template basic_obufferstream
boost::interprocess::basic_obufferstream
Synopsis
template<typename CharT, typename CharTraits>
class basic_obufferstream : public std::basic_ostream< CharT, CharTraits > {
public:
typedef std::basic_ios< CharT, CharTraits >::char_type char_type;
typedef std::basic_ios< char_type, CharTraits >::int_type int_type;
typedef std::basic_ios< char_type, CharTraits >::pos_type pos_type;
typedef std::basic_ios< char_type, CharTraits >::off_type off_type;
typedef std::basic_ios< char_type, CharTraits >::traits_type traits_type;
basic_obufferstream(std::ios_base::openmode = std::ios_base::out);
basic_obufferstream(CharT *, std::size_t,
std::ios_base::openmode = std::ios_base::out);
~basic_obufferstream();
basic_bufferbuf< CharT, CharTraits > * rdbuf() const;
std::pair< CharT *, std::size_t > buffer() const;
void buffer(CharT *, std::size_t);
};
Description
Базовый класс ostream, который использует буфер символов фиксированного размера в качестве буфера форматирования.
basic_obufferstream
public
construct/copy/destruct
- <
basic_obufferstream(std::ios_base::openmodemode=std::ios_base::out);
>Конструктор. Не бросает.
- <
basic_obufferstream(CharT*buf,std::size_tlength,
std::ios_base::openmodemode=std::ios_base::out);
>Конструктор. Назначает буфер форматирования. Не бросает.
- <
~basic_obufferstream();
>
basic_obufferstream
public member functions
- <
basic_bufferbuf<CharT,CharTraits>*rdbuf()const;
>Возвращает адрес хранимого буфера потока.
- <
std::pair<CharT*,std::size_t>buffer()const;
>Возвращает указатель и размер внутреннего буфера. Не бросает.
- <
voidbuffer(CharT*buf,std::size_tlength);
>Устанавливает базовый буфер на новое значение. Сброс позиции потока. Не бросает.