Пространства имён
Варианты
Действия

std::basic_stringbuf

Материал из cppreference.com
< cpp | io

 
 
Библиотеки ввода / вывода
I / O манипуляторов
C-стиль I / O
Буферы
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(устарело)
Потоки
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Абстракций
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
Файл I / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
Струнный I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
Массив I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(устарело)
ostrstream(устарело)
strstream(устарело)
Типы
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Интерфейс Ошибка категории
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
std::basic_stringbuf
Общественные функции-члены
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_stringbuf::basic_stringbuf
basic_stringbuf::operator=(C++11)
basic_stringbuf::swap(C++11)
basic_stringbuf::str
Охраняемые функций-членов
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_stringbuf::underflow
basic_stringbuf::pbackfail
basic_stringbuf::overflow
basic_stringbuf::setbuf
basic_stringbuf::seekoff
basic_stringbuf::seekpos
Не являющиеся членами функций
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap(std::basic_stringbuf)(C++11)
 
Заголовочный файл <sstream>
template<

    class charT,
    class Traits = std::char_traits<CharT>,
    class Allocator = std::allocator<CharT>

> class basic_stringbuf : public std::basic_streambuf<CharT, Traits>
std::basic_stringbuf является std::basic_streambuf, ассоциированная последовательность символов является резидентный последовательность произвольных символов, которые могут быть инициализированы с или предоставляться в виде экземпляра std::basic_string.
Original:
std::basic_stringbuf is a std::basic_streambuf whose associated character sequence is a memory-resident sequence of arbitrary characters, which can be initialized from or made available as an instance of std::basic_string.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Типичная реализация std::basic_stringbuf удерживать объект типа std::basic_string непосредственно в качестве члена данных и использовать его и как управляемой последовательности символов (массив, в котором шесть указателей std::basic_streambuf указывают на), а также связанные с ними последовательность символов (источник символов для всех ввод операции и мишень для выхода). Кроме того, имеет место типичная реализация данных типа std::ios_base::openmode для индикации состояния потока (только для ввода, вывода только, или вход / выход).
Original:
Typical implementations of std::basic_stringbuf hold an object of type std::basic_string directly as a data member and use it as both the controlled character sequence (the array where the six pointers of std::basic_streambuf are pointing to) and as the associated character sequence (the source of characters for all input operations and the target for the output). In addition, a typical implementation holds a data member of type std::ios_base::openmode to indicate the status of the stream (input-only, output-only, or input/output).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Две специализации для распространенных типов характера также определяются:
Original:
Two specializations for common character types are also defined:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Определено в файле <sstream>
Type
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
stringbuf basic_stringbuf<char>
wstringbuf basic_stringbuf<wchar_t>

Содержание

[править] Член типов

Член типа
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
char_type CharT[edit]
traits_type Traits[edit]
int_type Traits::int_type[edit]
pos_type Traits::pos_type[edit]
off_type Traits::off_type[edit]
allocator_type Allocator (начиная с C++11)[edit]

[править] Член функций

Общественные функции-члены
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

строит basic_stringbuf объекта
Original:
constructs a basic_stringbuf object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член) [edit]
(C++11)
assigns a basic_stringbuf object
(public функция-член) [edit]
(C++11)
свопы двух объектов basic_stringbuf
Original:
swaps two basic_stringbuf objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член) [edit]
(destructor)
[virtual] (объявлено неявно)
destructs a basic_stringbuf object and the string it holds
(virtual public функция-член) [edit]
заменяет или получает копию соответствующей строки символов
Original:
replaces or obtains a copy of the associated character string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член) [edit]

Охраняемые функций-членов
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[virtual]
возвращает следующий символ доступны на входной последовательности
Original:
returns the next character available in the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected функция-член) [edit]
[virtual]
помещает символ назад во входной последовательности
Original:
puts a character back into the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected функция-член) [edit]
[virtual]
добавляет символ в выходной последовательности
Original:
appends a character to the output sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected функция-член) [edit]
[virtual]
Попытки заменить управляемой последовательности символов с массивом
Original:
attempts to replace the controlled character sequence with an array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected функция-член) [edit]
[virtual]
перемещает курсор в следующую последовательность ввода, вывода последовательности, или как с помощью относительной адресации
Original:
repositions the next pointer in the input sequence, output sequence, or both, using relative addressing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected функция-член) [edit]
[virtual]
перемещает курсор в следующую последовательность ввода, вывода последовательности, или как с помощью абсолютная адресация
Original:
repositions the next pointer in the input sequence, output sequence, or both using absolute addressing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected функция-член) [edit]

[править] Не являющиеся членами функций

Специализируется std::swap алгоритм
Original:
specializes the std::swap algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(шаблон функции) [edit]

Унаследован от std::basic_streambuf

Member types

Член типа
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
char_type CharT[edit]
traits_type Traits[edit]
int_type Traits::int_type[edit]
pos_type Traits::pos_type[edit]
off_type Traits::off_type[edit]

Member functions

[virtual]
разрушает basic_streambuf объекта
Original:
destructs the basic_streambuf object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual public std::basic_streambuf функция-член) [edit]
Языки
Original:
Locales
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Вызывает imbue()
Original:
invokes imbue()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
получает копию соответствующего языка
Original:
obtains a copy of the associated locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Позиционирование
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Вызывает setbuf()
Original:
invokes setbuf()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Вызывает seekoff()
Original:
invokes seekoff()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Вызывает seekpos()
Original:
invokes seekpos()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Вызывает sync()
Original:
invokes sync()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Получить области
Original:
Get area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
получает количество символов немедленно доступны на Get области
Original:
obtains the number of characters immediately available in the get area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
авансы входной последовательности, а затем считывает один символ не идя снова
Original:
advances the input sequence, then reads one character without advancing again
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
читает один символ из входной последовательности и авансы последовательности
Original:
reads one character from the input sequence and advances the sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
stossc
(устарело)
авансы входной последовательности, как если бы по телефону sbumpc() и отбрасывая результат
Original:
advances the input sequence as if by calling sbumpc() and discarding the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член) [edit]
считывает один символ из входной последовательности без продвижения последовательности
Original:
reads one character from the input sequence without advancing the sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Вызывает xsgetn()
Original:
invokes xsgetn()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Положить области
Original:
Put area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
пишет один символ положил площадь и средства, следующего указателя
Original:
writes one character to the put area and advances the next pointer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Вызывает xsputn()
Original:
invokes xsputn()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
Putback
Original:
Putback
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ставит на один символ назад во входной последовательности
Original:
puts one character back in the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]
перемещает следующий указатель на задней входной последовательности по одному
Original:
moves the next pointer in the input sequence back by one
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::basic_streambuf) [edit]

Protected member functions

строит basic_streambuf объекта
Original:
constructs a basic_streambuf object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
(C++11)
заменяет basic_streambuf объекта
Original:
replaces a basic_streambuf object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
(C++11)
Меняет местами два basic_streambuf объектов
Original:
swaps two basic_streambuf objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
Языки
Original:
Locales
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[virtual]
изменения связаны языка
Original:
changes the associated locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
Позиционирование
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[virtual]
заменяет буфер с заданными пользователем массива, если это разрешено
Original:
replaces the buffer with user-defined array, if permitted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
[virtual]
перемещает курсор в следующую последовательность ввода, вывода последовательности, или как с помощью относительной адресации
Original:
repositions the next pointer in the input sequence, output sequence, or both, using relative addressing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
[virtual]
перемещает курсор в следующую последовательность ввода, вывода последовательности, или как с помощью абсолютная адресация
Original:
repositions the next pointer in the input sequence, output sequence, or both using absolute addressing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
[virtual]
синхронизация буфера с соответствующей последовательности символов
Original:
synchronizes the buffers with the associated character sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
Получить области
Original:
Get area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[virtual]
получает количество символов, доступных для ввода в соответствующей последовательности ввода, если оно известно
Original:
obtains the number of characters available for input in the associated input sequence, if known
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
[virtual]
читает символы из соответствующей последовательности ввода Get области
Original:
reads characters from the associated input sequence to the get area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
[virtual]
читает символы из соответствующей последовательности ввода Get области и авансов следующего указателя
Original:
reads characters from the associated input sequence to the get area and advances the next pointer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
[virtual]
читает несколько символов из входной последовательности
Original:
reads multiple characters from the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
возвращает указатель на начало текущего символа и до конца Get области
Original:
returns a pointer to the beginning, current character and the end of the get area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
достижения следующего указателя во входной последовательности
Original:
advances the next pointer in the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
перемещает начало, дальше, и конца указатели входной последовательности
Original:
repositions the beginning, next, and end pointers of the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
Положить области
Original:
Put area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[virtual]
writes multiple characters to the output sequence
(virtual protected std::basic_streambuf функция-член) [edit]
[virtual]
пишет символы с соответствующей последовательности выхода из поставленных области
Original:
writes characters to the associated output sequence from the put area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]
возвращает указатель на начало текущего символа и конец положил области
Original:
returns a pointer to the beginning, current character and the end of the put area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
достижения следующего указателя выходной последовательности
Original:
advances the next pointer of the output sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
перемещает начало, дальше, и конца указатели выходной последовательности
Original:
repositions the beginning, next, and end pointers of the output sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член) [edit]
Putback
Original:
Putback
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[virtual]
помещает символ назад во входной последовательности, возможно изменение входной последовательности
Original:
puts a character back into the input sequence, possibly modifying the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::basic_streambuf функция-член) [edit]