Class template basic_ibufferstream
boost::interprocess::basic_ibufferstream
Synopsis
template<typename CharT, typename CharTraits>
class basic_ibufferstream : public std::basic_istream< 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_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();
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
- <
basic_ibufferstream(std::ios_base::openmodemode=std::ios_base::in);
>Конструктор. Не бросает.
- <
basic_ibufferstream(constCharT*buf,std::size_tlength,
std::ios_base::openmodemode=std::ios_base::in);
>Конструктор. Назначает буфер форматирования. Не бросает.
- <
~basic_ibufferstream();
>
basic_ibufferstream
public member functions
- <
basic_bufferbuf<CharT,CharTraits>*rdbuf()const;
>Возвращает адрес хранимого буфера потока.
- <
std::pair<constCharT*,std::size_t>buffer()const;
>Возвращает указатель и размер внутреннего буфера. Не бросает.
- <
voidbuffer(constCharT*buf,std::size_tlength);
>Устанавливает базовый буфер на новое значение. Сброс позиции потока. Не бросает.