std::basic_filebuf::pbackfail

Da cppreference.com.
< cpp‎ | io‎ | basic filebuf

 
 
Ingresso / libreria di output
I / O manipolatori
C-style I / O
Buffer
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(deprecato)
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.
Astrazioni
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
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.
basic_ifstream
basic_ofstream
basic_fstream
String 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
Array 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(deprecato)
ostrstream(deprecato)
strstream(deprecato)
Tipi
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
Errore categoria interfaccia
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
Funzioni membro pubbliche
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
Protetto funzioni 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.
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
Non membri funzioni
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)
 
protected:
virtual int_type pbackfail( int_type c = Traits::eof())
Mette il carattere c indietro nell'area get, in uno dei tre modi:
Original:
Puts the character c back into the get area, in one of the three ways:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
c se non è il carattere EOF, come determinato chiamando Traits::eq_int_type(c,traits::eof()) e se vi è spazio per un putback, e se c è esattamente il personaggio che è stato più recentemente letto dalla zona get, come determinato da Traits::eq(to_char_type(c),gptr()[-1]), quindi semplicemente gptr() decrementa di uno.
Original:
If c is not the EOF character, as determined by calling Traits::eq_int_type(c,traits::eof()) and if there is room for a putback, and if c is exactly the character that was most recently read from the get area, as determined by Traits::eq(to_char_type(c),gptr()[-1]), then simply decrements gptr() by one.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Se c non è il carattere EOF, come determinata dalla chiamata Traits::eq_int_type(c,traits::eof()) e se c'è spazio per un putback, e se il buffer è permesso di modificare le ottenere zona, diminuisce gptr() e c scrive a lì. Si noti che questo non modifica la sequenza di caratteri associata (il file), ma solo la zona di ottenere in memoria.
Original:
If c is not the EOF character, as determined by calling Traits::eq_int_type(c,traits::eof()) and if there is room for a putback, and if the buffer is allowed to modify the get area, decrements gptr() and writes c to there. Note that this does not modify the associated character sequence (the file), but only the get area in memory.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Se c è il carattere EOF (Traits::eq_int_type(c,traits::eof()) ritorna true), e se c'è spazio per un putback, decrementa gptr(). Questo ha l'effetto di rendere il carattere letto disponibili per la lettura di nuovo.
Original:
If c is the EOF character (Traits::eq_int_type(c,traits::eof()) returns true), and if there is room for a putback, decrements gptr(). This has the effect of making the last character read available for reading once again.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se il file non è aperto (is_open()==false, questa funzione restituisce Traits::eof() immediatamente.
Original:
If the file is not open (is_open()==false, this function returns Traits::eof() immediately.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica]Parametri

c -
il carattere di putback, o eof
Original:
the character to putback, or eof
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica]Valore di ritorno

1-2) c

3) Traits::not_eof(c)

Traits::eof() in caso di guasto.
Original:
Traits::eof() in case of failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica]Esempio

[modifica]Vedi anche

[virtuale]
mette un carattere indietro nella sequenza di ingresso, eventualmente modificando la sequenza di ingresso
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.

(virtuale protetto funzione of std::basic_streambuf membro)[modifica]
sposta il puntatore successivo nella sequenza di input retro di uno
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.

(metodo pubblico)[modifica]
mette un carattere indietro nella sequenza di input
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.

(metodo pubblico)[modifica]
unextracts un carattere
Original:
unextracts a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(metodo pubblico)[modifica]
mette carattere nel flusso di input
Original:
puts character into input stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(metodo pubblico)[modifica]
close