std::basic_filebuf - cppreference.com
std::basic_filebuf é um std::basic_streambuf cujo associado seqüência de caracteres é um arquivo. Tanto a sequência de entrada e a sequência de saída estão associados com o mesmo ficheiro, e uma posição de articulação de arquivo é mantida para ambas as operações.
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.
O underflow funções () e overflow () / sync () realizar a I real / S entre o arquivo e as áreas de obter e colocar do buffer. Quando CharT não é char, a maioria das implementações de armazenar caracteres de vários bytes no arquivo e uma faceta std::codecvt é usado para realizar ampla / conversão de caracteres multibyte.
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.
Duas especializações para tipos de caracteres comuns também estão definidos:
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.
Membro funções públicas
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.
Membro funções públicas
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.
constrói um objeto 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.
(função pública membro) [edit]
atribui um objeto 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.
(função pública membro) [edit]
troca dois objetos 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.
(função pública membro) [edit]
destrói um objeto basic_filebuf e fecha o arquivo, se ele estiver aberto
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.
(função pública virtual membro) [edit] checks if the associated file is open
(função pública membro) [edit]
abre um arquivo e configura como a seqüência de caracteres associado
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.
(função pública membro) [edit]
esvaziará o buffer área e colocar fecha o arquivo associado
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.
(função pública membro) [edit]
Protegido funções de membro
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.
Protegido funções de membro
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.
opcionalmente fornece o número de caracteres disponíveis para a entrada do arquivo
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.
(virtual protegido função de membro) [edit]
lê o arquivo associado
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.
(virtual protegido função de membro) [edit]
lê o arquivo associado e avanços o ponteiro próximo da região 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.
(virtual protegido função de membro) [edit]
coloca de volta o personagem na área get, não afetando o arquivo associado
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.
(virtual protegido função de membro) [edit]
escreve caracteres para o arquivo associado da área de venda
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.
(virtual protegido função de membro) [edit]
fornece fornecido pelo usuário tampão ou transforma este filebuf unbuffered
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.
(virtual protegido função de membro) [edit]
reposiciona a posição do arquivo, usando endereçamento relativo
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.
(virtual protegido função de membro) [edit]
reposiciona a posição do arquivo, usando o endereçamento absoluto
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.
(virtual protegido função de membro) [edit]
escreve caracteres para o arquivo associado da área de venda
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.
(virtual protegido função de membro) [edit]
altera o local associado
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 protegido função de membro) [edit]
Herdado de std::basic_streambuf
Member types
Tipo de membro Original: Member type The text has been machine-translated via Google Translate. |
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] |
destrói o objeto basic_streambuf Original: destructs the basic_streambuf object The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública virtual membro) [edit]
|
Localidades Original: Locales The text has been machine-translated via Google Translate. | |
Invoca Original: invokes The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
obtém uma cópia do local associado Original: obtains a copy of the associated locale The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Posicionamento Original: Positioning The text has been machine-translated via Google Translate. | |
Invoca Original: invokes The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Invoca Original: invokes The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Invoca Original: invokes The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Invoca Original: invokes The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Obter área Original: Get area The text has been machine-translated via Google Translate. | |
obtém o número de caracteres disponíveis imediatamente na área get Original: obtains the number of characters immediately available in the get area The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
avança a seqüência de entrada, em seguida, lê um caractere sem avançar novamente Original: advances the input sequence, then reads one character without advancing again The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
lê um caractere da seqüência de entrada e avança a seqüência Original: reads one character from the input sequence and advances the sequence The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
stossc (obsoleta) |
avança a seqüência de entrada, como se chamando sbumpc()e descartando o resultado Original: The text has been machine-translated via Google Translate. (função pública membro) [edit] |
lê um caractere da seqüência de entrada sem avançar na seqüência Original: reads one character from the input sequence without advancing the sequence The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Invoca Original: invokes The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Coloque área Original: Put area The text has been machine-translated via Google Translate. | |
escreve um personagem para a área de largada e avança o ponteiro seguinte Original: writes one character to the put area and advances the next pointer The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Invoca Original: invokes The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Putback Original: Putback The text has been machine-translated via Google Translate. | |
coloca um personagem de volta na seqüência de entrada Original: puts one character back in the input sequence The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
move o ponteiro próximo da sequência de entrada volta a um Original: moves the next pointer in the input sequence back by one The text has been machine-translated via Google Translate. (of std::basic_streambuf função pública membro) [edit]
| |
Protected member functions
constrói um objeto basic_streambuf Original: constructs a basic_streambuf object The text has been machine-translated via Google Translate. (protegido função de membro) [edit] | |
(C++11) |
substitui um objeto basic_streambuf Original: replaces a basic_streambuf object The text has been machine-translated via Google Translate. (protegido função de membro) [edit] |
(C++11) |
troca dois objetos basic_streambuf Original: swaps two basic_streambuf objects The text has been machine-translated via Google Translate. (protegido função de membro) [edit] |
Localidades Original: Locales The text has been machine-translated via Google Translate. | |
[virtual] |
altera o local associado Original: changes the associated locale The text has been machine-translated via Google Translate. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
Posicionamento Original: Positioning The text has been machine-translated via Google Translate. | |
[virtual] |
substitui o buffer com matriz definida pelo usuário, se for permitido Original: replaces the buffer with user-defined array, if permitted The text has been machine-translated via Google Translate. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
[virtual] |
reposiciona ponteiro a seguinte na sequência de entrada, de saída de sequência, ou ambos, usando endereçamento relativo 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. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
[virtual] |
reposiciona o ponteiro próximo na seqüência de entrada, a seqüência de saída, ou ambos, usando endereçamento absoluto 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. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
[virtual] |
sincroniza os buffers com a seqüência de caracteres associado Original: synchronizes the buffers with the associated character sequence The text has been machine-translated via Google Translate. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
Obter área Original: Get area The text has been machine-translated via Google Translate. | |
[virtual] |
obtém o número de caracteres disponíveis para a entrada da sequência de entrada associada, se conhecida 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. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
[virtual] |
lê caracteres da seqüência de entrada associado para a área get Original: reads characters from the associated input sequence to the get area The text has been machine-translated via Google Translate. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
[virtual] |
lê caracteres da seqüência de entrada associado à área de get e avança o ponteiro seguinte 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. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
[virtual] |
lê vários personagens da seqüência de entrada Original: reads multiple characters from the input sequence The text has been machine-translated via Google Translate. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
retorna um ponteiro para o início, o personagem de corrente e o fim da área 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. (protegido função de membro) [edit] | |
avança o ponteiro próximo na seqüência de entrada Original: advances the next pointer in the input sequence The text has been machine-translated via Google Translate. (protegido função de membro) [edit] | |
reposiciona ponteiros o início, ao lado, e no fim da seqüência de entrada Original: repositions the beginning, next, and end pointers of the input sequence The text has been machine-translated via Google Translate. (protegido função de membro) [edit] | |
Coloque área Original: Put area The text has been machine-translated via Google Translate. | |
[virtual] |
writes multiple characters to the output sequence (virtual protegido of std::basic_streambuf função de membro) [edit]
|
[virtual] |
escreve caracteres para a seqüência de saída associado da área de venda Original: writes characters to the associated output sequence from the put area The text has been machine-translated via Google Translate. (virtual protegido of std::basic_streambuf função de membro) [edit]
|
retorna um ponteiro para o início, o personagem de corrente e o fim da área de venda 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. (protegido função de membro) [edit] | |
avanços ponteiro o próximo da seqüência de saída Original: advances the next pointer of the output sequence The text has been machine-translated via Google Translate. (protegido função de membro) [edit] | |
reposiciona ponteiros o início, ao lado, e no fim da seqüência de saída Original: repositions the beginning, next, and end pointers of the output sequence The text has been machine-translated via Google Translate. (protegido função de membro) [edit] | |
Putback Original: Putback The text has been machine-translated via Google Translate. | |
[virtual] |
coloca um caractere de volta para a sequência de entrada, possivelmente modificando a sequência de entrada Original: puts a character back into the input sequence, possibly modifying the input sequence The text has been machine-translated via Google Translate. (virtual protegido of std::basic_streambuf função de membro) [edit]
|