std::basic_istringstream - cppreference.com
De cppreference.com
<tbody> </tbody>
| Definido no cabeçalho <sstream> |
||
|
|
(até C++11) | |
|
|
(desde C++11) | |
O basic_istringstream modelo de classe implementa operações de entrada na memória (std::basic_string) fluxos baseados. É, essencialmente, envolve uma aplicação de dispositivo bruto corda (basic_stringbuf) em uma interface de nível superior (basic_istream). A interface completa de membros basic_stringbuf únicas é fornecido.
Original:
The class template basic_istringstream implements input operations on memory (std::basic_string) based streams. It essentially wraps a raw string device implementation (basic_stringbuf) into a higher-level interface (basic_istream). The complete interface to unique basic_stringbuf members is provided.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Inheritance diagram
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.
Defined in header | |
Tipo Original: Type The text has been machine-translated via Google Translate. |
Definition |
istringstream
|
basic_istringstream<char>
|
wistringstream
|
basic_istringstream<wchar_t>
|
Tipos de membro
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]
|
allocator_type
|
Allocator (desde C++11)[edit]
|
Funções de membro
constrói o fluxo de cadeia Original: constructs the string stream The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
(C++11) |
move-se da corrente cadeia de caracteres Original: moves the string stream The text has been machine-translated via Google Translate. (função pública membro) [edit] |
(C++11) |
swaps two string streams (função pública membro) [edit] |
retorna o objeto dispositivo subjacente prima string Original: returns the underlying raw string device object The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
Seqüência de operações Original: String operations The text has been machine-translated via Google Translate. | |
Obtém ou define o conteúdo do objeto subjacente corda dispositivo Original: gets or sets the contents of underlying string device object The text has been machine-translated via Google Translate. (função pública membro) [edit] | |
Herdado de std::basic_istream
Member functions
Entrada formatada Original: Formatted input The text has been machine-translated via Google Translate. | |
extratos dados formatados Original: extracts formatted data The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
Entrada não formatado Original: Unformatted input The text has been machine-translated via Google Translate. | |
extratos personagens Original: extracts characters The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
lê o próximo caractere sem extraí-lo Original: reads the next character without extracting it The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
unextracts um personagem Original: unextracts a character The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
coloca personagem em fluxo de entrada Original: puts character into input stream The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
extratos de caracteres até o caráter dado foi encontrado Original: extracts characters until the given character is found The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
extratos e personagens descarta até o caráter dado foi encontrado Original: extracts and discards characters until the given character is found The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
extrai blocos de caracteres Original: extracts blocks of characters The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
extrai blocos já disponíveis de caracteres Original: extracts already available blocks of characters The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
retorna o número de caracteres extraídos por operação de entrada passado não formatado Original: returns number of characters extracted by last unformatted input operation The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
Posicionamento Original: Positioning The text has been machine-translated via Google Translate. | |
retorna o indicador de posição de entrada Original: returns the input position indicator The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
| sets the input position indicator (of std::basic_istream função pública membro) [edit]
| |
Diversos Original: Miscellaneous The text has been machine-translated via Google Translate. | |
sincroniza com o dispositivo de armazenamento subjacente Original: synchronizes with the underlying storage device The text has been machine-translated via Google Translate. (of std::basic_istream função pública membro) [edit]
| |
Member classes
| implements basic logic for preparation of the stream for input operations (of std::basic_istream public class membro) [edit]
| |
Herdado de std::basic_ios
Member types
Tipo de membro Original: Member type The text has been machine-translated via Google Translate. |
Definition |
char_type
|
CharT
|
traits_type
|
Traits
|
int_type
|
Traits::int_type
|
pos_type
|
Traits::pos_type
|
off_type
|
Traits::off_type
|
Funções do Estado Original: State functions The text has been machine-translated via Google Translate. | |
verifica se não ocorreu nenhum erro ou seja, I / O operações estão disponíveis Original: checks if no error has occurred i.e. I/O operations are available The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
verifica se fim-de-arquivo foi atingido Original: checks if end-of-file has been reached The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
verifica se um erro recuperável ocorreu Original: checks if a recoverable error has occurred The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
verifica se um erro não-recuperável ocorreu Original: checks if a non-recoverable error has occurred The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
Verifica se um erro ocorreu (sinônimo de fail()) Original: The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
(até C++11) |
verifica se não ocorreu nenhum erro (sinônimo de Original: checks if no error has occurred (synonym of The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
|
retorna bandeiras estaduais Original: returns state flags The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
define bandeiras estaduais Original: sets state flags The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
apaga bandeiras de erro e eof Original: clears error and eof flags The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
Formatação Original: Formatting The text has been machine-translated via Google Translate. | |
cópias formatar informações Original: copies formatting information The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
gerencia o caractere de preenchimento Original: manages the fill character The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
Diversos Original: Miscellaneous The text has been machine-translated via Google Translate. | |
| manages exception mask (of std::basic_ios função pública membro) [edit]
| |
define a localidade Original: sets the locale The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
administra buffer de fluxo associado Original: manages associated stream buffer The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
gerencia fluxo amarrado Original: manages tied stream The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
estreita caracteres Original: narrows characters The text has been machine-translated via Google Translate. (of std::basic_ios função pública membro) [edit]
| |
| widens characters (of std::basic_ios função pública membro) [edit]
| |
Herdado de std::ios_base
Member functions
Formatação Original: Formatting The text has been machine-translated via Google Translate. | |
administra sinalizadores de formato Original: manages format flags The text has been machine-translated via Google Translate. (of std::ios_base função pública membro) [edit]
| |
define como formato específico Original: sets specific format flag The text has been machine-translated via Google Translate. (of std::ios_base função pública membro) [edit]
| |
| clears specific format flag (of std::ios_base função pública membro) [edit]
| |
gerencia precisão decimal de operações de ponto flutuante Original: manages decimal precision of floating point operations The text has been machine-translated via Google Translate. (of std::ios_base função pública membro) [edit]
| |
| manages field width (of std::ios_base função pública membro) [edit]
| |
Localidades Original: Locales The text has been machine-translated via Google Translate. | |
define localidade Original: sets locale The text has been machine-translated via Google Translate. (of std::ios_base função pública membro) [edit]
| |
retorna local atual Original: returns current locale The text has been machine-translated via Google Translate. (of std::ios_base função pública membro) [edit]
| |
Matriz extensível interno Original: Internal extensible array The text has been machine-translated via Google Translate. | |
[estática] |
retorna um inteiro todo o programa original que é seguro para utilização como índice para pword () e iword () Original: returns a program-wide unique integer that is safe to use as index to pword() and iword() The text has been machine-translated via Google Translate. (of std::ios_base função public static membro) [edit]
|
redimensiona a armazenagem privada, se necessário e acesso ao elemento Original: resizes the private storage if necessary and access to the The text has been machine-translated via Google Translate. (of std::ios_base função pública membro) [edit]
| |
redimensiona a armazenagem privada, se necessário e acesso ao elemento Original: resizes the private storage if necessary and access to the The text has been machine-translated via Google Translate. (of std::ios_base função pública membro) [edit]
| |
Diversos Original: Miscellaneous The text has been machine-translated via Google Translate. | |
| registers event callback function (of std::ios_base função pública membro) [edit]
| |
[estática] |
define se C + + e bibliotecas C IO são interoperáveis Original: sets whether C++ and C IO libraries are interoperable The text has been machine-translated via Google Translate. (of std::ios_base função public static membro) [edit]
|
Aulas-Membros Original: Member classes The text has been machine-translated via Google Translate. | |
exceção fluxo Original: stream exception The text has been machine-translated via Google Translate. (of std::ios_base public class membro) [edit]
| |
inicializa objetos de fluxo padrão Original: initializes standard stream objects The text has been machine-translated via Google Translate. (of std::ios_base public class membro) [edit]
| |
Tipos de membro e constantes Original: Member types and constants The text has been machine-translated via Google Translate. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tipo Original: Type The text has been machine-translated via Google Translate. |
Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fluxo tipo de modo aberto As constantes também estão definidos:
Original: stream open mode type The following constants are also defined:
The text has been machine-translated via Google Translate. (typedef) [edit] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tipo de bandeiras formatação As constantes também estão definidos:
Original: formatting flags type The following constants are also defined:
The text has been machine-translated via Google Translate. (typedef) [edit] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
estado do tipo de fluxo As constantes também estão definidos:
Original: state of the stream type The following constants are also defined:
The text has been machine-translated via Google Translate. (typedef) [edit] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seeking direction type
The following constants are also defined:
(typedef) [edit] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
especifica o tipo de evento Original: specifies event type The text has been machine-translated via Google Translate. (enum) [edit] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
callback tipo de função Original: callback function type The text has been machine-translated via Google Translate. (typedef) [edit] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||