Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template basic_bufferstream

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Indexes and Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template basic_bufferstream

boost::interprocess::basic_bufferstream

Synopsis

// In header: <boost/interprocess/streams/bufferstream.hpp>
template<typename CharT, typename CharTraits> 
class basic_bufferstream : public std::basic_iostream< CharT, CharTraits > {
public:
  // types
  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;
  // construct/copy/destruct
  basic_bufferstream(std::ios_base::openmode = std::ios_base::in|std::ios_base::out);
  basic_bufferstream(CharT *, std::size_t, 
                     std::ios_base::openmode = std::ios_base::in|std::ios_base::out);
  ~basic_bufferstream();
  // public member functions
  basic_bufferbuf< CharT, CharTraits > * rdbuf() const;
  std::pair< CharT *, std::size_t > buffer() const;
  void buffer(CharT *, std::size_t);
};

Description

Базовый класс_iostream, который использует буфер символов фиксированного размера в качестве буфера форматирования.

basic_bufferstream public construct/copy/destruct

  1. <
    basic_bufferstream(std::ios_base::openmodemode=std::ios_base::in|std::ios_base::out);
    >

    Конструктор. Не бросает.

  2. <
    basic_bufferstream(CharT*buf,std::size_tlength,
                      std::ios_base::openmodemode=std::ios_base::in|std::ios_base::out);
    >

    Конструктор. Назначает буфер форматирования. Не бросает.

  3. <
    ~basic_bufferstream();
    >

basic_bufferstream public member functions

  1. <
    basic_bufferbuf<CharT,CharTraits>*rdbuf()const;
    >

    Возвращает адрес хранимого буфера потока.

  2. <
    std::pair<CharT*,std::size_t>buffer()const;
    >

    Возвращает указатель и размер внутреннего буфера. Не бросает.

  3. <
    voidbuffer(CharT*buf,std::size_tlength);
    >

    Устанавливает базовый буфер на новое значение. Сброс позиции потока. Не бросает.


PrevUpHomeNext

Статья Class template basic_bufferstream раздела The Boost C++ Libraries BoostBook Documentation Subset Indexes and Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Indexes and Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 04:40:15/0.0036239624023438/0