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

std::basic_filebuf

Материал из 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_filebuf
Общественные функции-члены
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_filebuf::basic_filebuf
basic_filebuf::~basic_filebuf
basic_filebuf::operator=(C++11)
basic_filebuf::swap(C++11)
basic_filebuf::is_open
basic_filebuf::open
basic_filebuf::close
Охраняемые функций-членов
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_filebuf::showmanyc
basic_filebuf::underflow
basic_filebuf::uflow
basic_filebuf::pbackfail
basic_filebuf::overflow
basic_filebuf::setbuf
basic_filebuf::seekoff
basic_filebuf::seekpos
basic_filebuf::sync
basic_filebuf::imbue
Не являющиеся членами функций
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_filebuf)(C++11)
 
Заголовочный файл <fstream>
template<

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

> class basic_filebuf : public std::basic_streambuf<CharT, Traits>
std::basic_filebuf является std::basic_streambuf, ассоциированная последовательность символов является файлом. Обе последовательности входных и выходных последовательностей, связанных с той же файл, и совместная позиция в файле сохраняется для обеих операций.
Original:
std::basic_filebuf is a std::basic_streambuf whose associated character sequence is a file. Both the input sequence and the output sequence are associated with the same file, and a joint file position is maintained for both operations.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Функции нижнего () и перелива () / синхронизации () выполняет фактическую I / O между файл и получить и положить областей буфера. Когда CharT не char, большинство реализаций хранения многобайтовых символов в файл и std::codecvt грань используется для выполнения широкого / многобайтовую преобразования символов.
Original:
The functions underflow() and overflow()/sync() perform the actual I/O between the file and the get and put areas of the buffer. When CharT is not char, most implementations store multibyte characters in the file and a std::codecvt facet is used to perform wide/multibyte character conversion.
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.
Определено в файле <streambuf>
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
filebuf basic_filebuf<char>
wfilebuf basic_filebuf<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 которые должны быть std::fpos<Traits::state_type>
Original:
Traits::pos_type which is required to be std::fpos<Traits::state_type>
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
off_type Traits::off_type[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_filebuf объекта
Original:
constructs a basic_filebuf object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

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

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

(публичная функция-член) [edit]
[виртуальные]
basic_filebuf разрушает объект и закрывает файл, если он открыт
Original:
destructs a basic_filebuf object and closes the file if it is open
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(виртуальные общественные функции-члена) [edit]
checks if the associated file is open
(публичная функция-член) [edit]
открывает файл и настраивает его как соответствующий последовательности символов
Original:
opens a file and configures it as 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.

(публичная функция-член) [edit]
очищает положить буферную зону и закрывает соответствующий файл
Original:
flushes the put area buffer and closes the associated file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(публичная функция-член) [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.

[виртуальные]
необязательно обеспечивает количество символов, доступных для ввода из файла
Original:
optionally provides the number of characters available for input from the file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
считывает данные из соответствующего файла
Original:
reads from the associated file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
читает из связанных файлов и авансы следующий указатель в область Get
Original:
reads from the associated file and advances the next pointer 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.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
ставит обратно характера в Get области, не влияющих на соответствующий файл
Original:
puts back the character in the get area, not affecting the associated file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
пишет символов связанных файлов из поставленных области
Original:
writes characters to the associated file 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.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
предоставляет пользователю поставляется буфера или превращает эту filebuf небуферизованных
Original:
provides user-supplied buffer or turns this filebuf unbuffered
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
перемещает позицию в файле, с помощью относительной адресации
Original:
repositions the file position, 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.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
перемещает позицию файла, используя абсолютную адресацию
Original:
repositions the file position, 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.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
пишет символов связанных файлов из поставленных области
Original:
writes characters to the associated file 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.

(виртуальные защищены функции-члена) [edit]
[виртуальные]
изменения связаны языка
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.

(виртуальные защищены функции-члена) [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

[виртуальные]
разрушает 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.

(виртуальные общественные of 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член) [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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(публичная функция-член 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.

(защита функции-члена) [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.

(защита функции-члена) [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.

(защита функции-члена) [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.
[виртуальные]
изменения связаны языка
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.

(виртуальные защищены of 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.
[виртуальные]
заменяет буфер с заданными пользователем массива, если это разрешено
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.

(виртуальные защищены of std::basic_streambuf функции-члена) [edit]
[виртуальные]
перемещает курсор в следующую последовательность ввода, вывода последовательности, или как с помощью относительной адресации
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.

(виртуальные защищены of std::basic_streambuf функции-члена) [edit]
[виртуальные]
перемещает курсор в следующую последовательность ввода, вывода последовательности, или как с помощью абсолютная адресация
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.

(виртуальные защищены of std::basic_streambuf функции-члена) [edit]
[виртуальные]
синхронизация буфера с соответствующей последовательности символов
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.

(виртуальные защищены of 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.
[виртуальные]
получает количество символов, доступных для ввода в соответствующей последовательности ввода, если оно известно
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.

(виртуальные защищены of std::basic_streambuf функции-члена) [edit]
[виртуальные]
читает символы из соответствующей последовательности ввода 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.

(виртуальные защищены of std::basic_streambuf функции-члена) [edit]
[виртуальные]
читает символы из соответствующей последовательности ввода 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.

(виртуальные защищены of std::basic_streambuf функции-члена) [edit]
[виртуальные]
читает несколько символов из входной последовательности
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.

(виртуальные защищены of 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.

(защита функции-члена) [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.

(защита функции-члена) [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.

(защита функции-члена) [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.
[виртуальные]
writes multiple characters to the output sequence
(виртуальные защищены of std::basic_streambuf функции-члена) [edit]
[виртуальные]
пишет символы с соответствующей последовательности выхода из поставленных области
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.

(виртуальные защищены of 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.

(защита функции-члена) [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.

(защита функции-члена) [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.

(защита функции-члена) [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 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.

(виртуальные защищены of std::basic_streambuf функции-члена) [edit]