std::basic_streambuf
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <streambuf>
|
||
template< class CharT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT> > class basic_streambuf; |
||
Die Klasse
basic_streambuf steuert Eingang und Ausgang mit einem Zeichensequenz. Es enthält und den Zugriff auf die kontrollierte Zeichensequenz (die Puffer) und gegebenenfalls die zugehörige Zeichen-Sequenz (Datei, I / O-Strom, TCP-Socket, usw.) . Original:
The class
basic_streambuf controls input and output to a character sequence. It includes and provides access to the controlled character sequence (the buffer) and, optionally, the associated character sequence (file, I/O stream, TCP socket, etc). 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.
Es unterstützt die folgenden Einschränkungen:
Original:
It supports the following constraints:
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.
- die kontrollierte Eingabesequenz kann nicht gelesen werden .Original:the controlled input sequence may not be readable.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- die kontrollierte Ausgabe Sequenz kann nicht beschreibbar sein .Original:the controlled output sequence may not be writeable.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- der Zeichendarstellung und Codieren in der gesteuerten Sequenz kann sich von den Zeichendarstellungen in der zugeordneten Sequenz (a std::codecvt Gebietsschema Facette kann notwendig sein, um die Konvertierung durchzuführen)Original:the character representation and encoding in the controlled sequence may be different from the character representations in the associated sequence (a std::codecvt locale facet may be necessary to perform the conversion)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- der gesteuerte Sequenz kann in der Lage sein, um die zugeordnete Sequenz direkt zuzugreifen .Original:the controlled sequence may be able to access the associated sequence directly.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
- die kontrollierte Sequenz kann willkürliche Einschränkungen beim Lesen zu verhängen, Schreiben, Suchen oder ungetting Zeichen .Original:the controlled sequence may impose arbitrary limitations on reading, writing, seeking, or ungetting characters.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die gesteuerte Zeichensequenz (die Puffer) ist ein Array von
CharT welche zu allen Zeiten, eine Subsequenz oder ein "Fenster" in die zugeordnete Zeichenfolge. Sein Zustand wird durch drei Zeiger beschrieben:Original:
The controlled character sequence (the buffer) is an array of
CharT which, at all times, represents a subsequence, or a "window" into the associated character sequence. Its state is described by three pointers: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.
1)
Das Anfang Zeiger, zeigt immer auf der untersten Element des Puffers
Original:
The beginning pointer, always points at the lowest element of the buffer
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.
2)
Das nächste Zeiger, zeigt auf das Element, das der nächste Kandidat für das Lesen oder Schreiben ist
Original:
The next pointer, points at the element that is the next candidate for reading or writing
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.
3)
Das Endezeiger, weist ein über das Ende des Puffers .
Original:
The end pointer, points one past the end of the buffer.
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.
Wenn der nächste Zeiger kleiner ist als der Endzeiger in einer Ausgangssequenz, a Schreibposition verfügbar ist. Der nächste Zeiger dereferenziert und zugeordnet werden .
Original:
If the next pointer is less than the end pointer in an output sequence, a write position is available. The next pointer can be dereferenced and assigned to.
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.
Wenn der nächste Zeiger kleiner ist als der Endzeiger in einer Eingabesequenz, lesen a' Position verfügbar ist. Der nächste Zeiger dereferenziert und gelesen werden .
Original:
If the next pointer is less than the end pointer in an input sequence, a read position is available. The next pointer can be dereferenced and read from.
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.
Wenn der nächste Zeiger größer ist als der beginnenden Zeiger in einer Eingangsfolge, a' putback Position verfügbar ist, und der nächste Zeiger kann dekrementiert, aufgelöst werden, und übertragen auf, um ein Zeichen wieder in der Eingabesequenz .
Original:
If the next pointer is greater than the beginning pointer in an input sequence, a putback position is available, and the next pointer may be decremented, dereferenced, and assigned to, in order to put a character back into 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.
You can help to correct and verify the translation. Click here for instructions.
Ein Objekt kann
basic_streambuf unterstützt einer Eingangssequenz (in welchem Fall der Puffer durch den Beginn, nächsten und Endzeiger beschrieben heißt erhalten Bereich), eine Ausgangssequenz ( gelegt Bereich) oder eine Eingabe / Ausgangssequenz. In letzterem Fall werden sechs Zeigern verfolgt, die möglicherweise alle Elemente des gleichen Zeichen-Array oder zwei einzelne Arrays zeigen .Original:
A
basic_streambuf object may support an input sequence (in which case the buffer described by the beginning, next, and end pointers is called get area), an output sequence (put area), or an input/output sequence. In latter case, six pointers are tracked, which may all point to elements of the same character array or two individual arrays.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.
Typische Umsetzung der
std::basic_streambuf Basisklasse hält nur diese sechs CharT* Zeiger und eine Kopie des std::locale als Datenelemente. Die Puffer selbst von den abgeleiteten Klassen wie umgesetzt werden std::basic_filebuf oder std::basic_stringbuf .Original:
Typical implementation of the
std::basic_streambuf base class holds only these six CharT* pointers and a copy of std::locale as data members. The buffers themselves are implemented by the derived classes such as std::basic_filebuf or std::basic_stringbuf.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.
| This section is incomplete Reason: Consistent terminology across the pages. Probably input/output sequence, get/put area, etc. |
Zwei Convenience typedefs werden von der Standard-Bibliothek zur Verfügung gestellt
Original:
Two convenience typedefs are provided by the standard library
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.
definiert in Header
<streambuf> | |
Type
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 |
streambuf
|
basic_streambuf<char>
|
wstreambuf
|
basic_streambuf<wchar_t>
|
Die I / O Stream-Objekten std::basic_istream, std::basic_ostream und abgeleitet sind, ganz im Sinne des std::basic_streambuf umgesetzt .
Original:
The I/O stream objects std::basic_istream, std::basic_ostream, and derived, are implemented entirely in terms of std::basic_streambuf.
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.
Mitglied Typen
Mitglied Typ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
CharT
|
traits_type
|
Traits
|
int_type
|
Traits::int_type
|
pos_type
|
Traits::pos_type
|
off_type
|
Traits::off_type
|
