Espaços nominais
Variantes
Acções

std::fpos

Da cppreference.com
< cpp‎ | io

 
 
De entrada / saída da biblioteca
I / O manipuladores
C estilo de I / O
Buffers
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(obsoleta)
Streams
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstrações
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
File 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.
Cordas 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.
Matriz de 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.
(obsoleta)
(obsoleta)
(obsoleta)
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fpos
Interface de categoria de erro
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.
(C++11)
 
Definido no cabeçalho <ios>
template< class State >
class fpos;
Especializações do modelo de classe std::fpos identificar posições absolutas em um riacho ou em um arquivo. Cada objeto de fpos tipo mantém a posição de byte no fluxo (normalmente como um membro privado do tipo std::streamoff) eo estado atual mudança, um valor do tipo State (tipicamente std::mbstate_t).
Original:
Specializations of the class template std::fpos identify absolute positions in a stream or in a file. Each object of type fpos holds the byte position in the stream (typically as a private member of type std::streamoff) and the current shift state, a value of type State (typically std::mbstate_t).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Quatro especializações de std::fpos são fornecidos:
Original:
Four specializations of std::fpos are provided:
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 <ios>
Tipo
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
streampos std::fpos<std::char_traits<char>::state_type>
u16streampos std::fpos<std::char_traits<char16_t>::state_type>
u32streampos std::fpos<std::char_traits<char32_t>::state_type>
wstreampos std::fpos<std::char_traits<wchar_t>::state_type>

[editar] Funções de membro

obtém / define o valor do estado de deslocamento
Original:
gets/sets the value of the shift state
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)
Além disso, as seguintes funções de membro e operadores devem ser fornecidas, embora seja não especificadas, se são membros ou não-membros.
Original:
In addition, the following member functions and operators must be provided, although it's unspecified if they are members or non-member.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • Um construtor que aceita um argumento do tipo int.
    Original:
    A constructor that accepts an argument of type int.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Um construtor que aceita um argumento do tipo std::streamoff. Esse construtor também deve aceitar a std::streamoff(-1) valor especial: o std::fpos construída desta forma é retornado por algumas operações de fluxo para indicar erros.
    Original:
    A constructor that accepts an argument of type std::streamoff. This constructor must also accept the special value std::streamoff(-1): the std::fpos constructed in this manner is returned by some stream operations to indicate errors.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Um operador de conversão que converte a fpos std::streamoff com o valor igual ao deslocamento a partir std::fpos(0).
    Original:
    A conversion operator that converts fpos to std::streamoff with the value equal to the offset from std::fpos(0).
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator== que compara dois objetos de std::fpos tipo e retorna um valor do tipo conversível para bool
    Original:
    operator== that compares two objects of type std::fpos and returns a value of type convertible to bool
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator!= que compara dois objetos de std::fpos tipo e retorna um valor do tipo conversível para bool
    Original:
    operator!= that compares two objects of type std::fpos and returns a value of type convertible to bool
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator+ e operator+= que pode adicionar std::streamoff para std::fpos
    Original:
    operator+ and operator+= which can add std::streamoff to std::fpos
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator- e operator-= que pode subtrair std::streamoff de um std::fpos
    Original:
    operator- and operator-= which can subtract std::streamoff from an std::fpos
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator- que pode subtrair dois objetos do tipo std::fpos produzindo um std::streamoff
    Original:
    operator- which can subtract two objects of type std::fpos producing an std::streamoff
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

[editar] Veja também

representa a posição arquivo / stream relativa (deslocamento de fpos), suficientes para representar qualquer tamanho de arquivo
Original:
represents relative file/stream position (offset from fpos), sufficient to represent any file size
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef)
retorna o indicador de posição de saída
Original:
returns the output position indicator
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_ostream função pública membro) [edit]
define o indicador de posição de saída
Original:
sets the output position indicator
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_ostream função pública membro) [edit]
fica o indicador de posição de arquivo
Original:
gets the file position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função) [edit]