std::fpos
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <ios>
|
||
template< class State > class fpos; |
||
Specializzazioni del modello di classe std::fpos identificare le posizioni assolute in un flusso o in un file. Ogni oggetto di tipo
fpos mantiene la posizione del byte nel flusso (tipicamente come membro privato di std::streamoff tipo) e lo stato corrente di spostamento, un valore di 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.
You can help to correct and verify the translation. Click here for instructions.
Quattro specializzazioni di std::fpos sono previsti:
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.
You can help to correct and verify the translation. Click here for instructions.
Definizione nell'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>
|
Membri funzioni
ottiene / imposta il valore dello stato spostamento 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. (metodo pubblico) | |
Inoltre, le seguenti funzioni membro e operatori devono essere forniti, anche se è specificato se membri o terzi.
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.
You can help to correct and verify the translation. Click here for instructions.
- Un costruttore che accetta un argomento di tipo
int.Original:A constructor that accepts an argument of typeint.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- Un costruttore che accetta un argomento di tipo std::streamoff. Questo costruttore deve anche accettare il
std::streamoff(-1)valore speciale: ilstd::fposcostruito in questo modo viene restituito da alcune operazioni di flusso per indicare gli errori.Original:A constructor that accepts an argument of type std::streamoff. This constructor must also accept the special valuestd::streamoff(-1): thestd::fposconstructed 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.
- Un operatore di conversione che converte
fposal std::streamoff con il valore uguale all'offset dastd::fpos(0).Original:A conversion operator that convertsfposto std::streamoff with the value equal to the offset fromstd::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==che confronta due oggetti distd::fpostipo e restituisce un valore di tipo convertibileboolOriginal:operator==that compares two objects of typestd::fposand returns a value of type convertible toboolThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator!=che confronta due oggetti distd::fpostipo e restituisce un valore di tipo convertibileboolOriginal:operator!=that compares two objects of typestd::fposand returns a value of type convertible toboolThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator+eoperator+=che può aggiungere alla std::streamoffstd::fposOriginal:operator+andoperator+=which can add std::streamoff tostd::fposThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator-eoperator-=che può sottrarre std::streamoff da unstd::fposOriginal:operator-andoperator-=which can subtract std::streamoff from anstd::fposThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator-che può sottrarre due oggetti di tipostd::fposproducendo una std::streamoffOriginal:operator-which can subtract two objects of typestd::fposproducing an std::streamoffThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Vedi anche
rappresenta il relativo file / flusso di posizione (offset da fpos), sufficiente per rappresentare qualsiasi dimensione di file 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) | |
restituisce l'indicatore di posizione di uscita 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. (metodo pubblico) | |
imposta l'indicatore di posizione di uscita 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. (metodo pubblico) | |
ottiene l'indicatore di posizione del file 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. (funzione) | |