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

Class template basic_ibufferstream

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_ibufferstream

boost::interprocess::basic_ibufferstream

Synopsis

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

Description

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

basic_ibufferstream public construct/copy/destruct

  1. <
    basic_ibufferstream(std::ios_base::openmodemode=std::ios_base::in);
    >

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

  2. <
    basic_ibufferstream(constCharT*buf,std::size_tlength,
                       std::ios_base::openmodemode=std::ios_base::in);
    >

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

  3. <
    ~basic_ibufferstream();
    >

basic_ibufferstream public member functions

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

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

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

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

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

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


PrevUpHomeNext

Статья Class template basic_ibufferstream раздела 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 02:43:30/0.0036540031433105/0