std::basic_streambuf
Aus cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <streambuf> | ||
template< class CharT, | ||
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
1) 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.
Das Anfang Zeiger, zeigt immer auf der untersten Element des Puffers
2) 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.
Das nächste Zeiger, zeigt auf das Element, das der nächste Kandidat für das Lesen oder Schreiben ist
3) 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.
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.
[Bearbeiten]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 |
[Bearbeiten]Member-Funktionen
[virtuell] | zerstört sich die basic_streambuf Objekt Original: destructs the basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen öffentlichen Member-Funktion) |
Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Beruft imbue() Original: invokes imbue() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
erhält eine Kopie des zugehörigen locale Original: obtains a copy of the associated locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Original: Positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Beruft setbuf() Original: invokes setbuf() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Beruft seekoff() Original: invokes seekoff() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Beruft seekpos() Original: invokes seekpos() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Beruft sync() Original: invokes sync() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Original: Get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
erhält die Anzahl der Zeichen sofort in der get-Bereich Original: obtains the number of characters immediately available in the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Fortschritte die Eingabesequenz, dann liest ein Charakter ohne Förderung wieder Original: advances the input sequence, then reads one character without advancing again The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
liest ein Zeichen aus der Eingabesequenz und fördert die Sequenz Original: reads one character from the input sequence and advances the sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
stossc (veraltet) | Fortschritte der Eingabesequenz, als ob durch den Aufruf sbumpc() und Verwerfen die Folge Original: advances the input sequence as if by calling sbumpc() and discarding the result The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |
liest ein Zeichen aus der Eingabesequenz ohne dabei den Sequenz Original: reads one character from the input sequence without advancing the sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Beruft xsgetn() Original: invokes xsgetn() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Original: Put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
schreibt ein Zeichen der Put-Bereich und Fortschritte der nächste Zeiger Original: writes one character to the put area and advances the next pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Beruft xsputn() Original: invokes xsputn() The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
Original: Putback The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
stellt ein Zeichen wieder in der Eingabesequenz 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. (öffentliche Elementfunktion) | |
bewegt den nächsten Zeiger in der Eingabesequenz zurück um eins 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. (öffentliche Elementfunktion) | |
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. | |
konstruiert eine basic_streambuf Objekt Original: constructs a basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
(C++11) | ersetzt eine basic_streambuf Objekt Original: replaces a basic_streambuf object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) |
(C++11) | Swaps zwei basic_streambuf Objekte Original: swaps two basic_streambuf objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) |
Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] | ändert den zugehörigen Gebietsschema Original: changes the associated locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
Original: Positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] | ersetzt den Puffer mit benutzerdefinierten Array, sofern zulässig Original: replaces the buffer with user-defined array, if permitted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] | repositioniert der nächste Zeiger in der Eingangssequenz, Ausgangssequenz, oder beide, mit relativen Adressierung Original: repositions the next pointer in the input sequence, output sequence, or both, using relative addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] | repositioniert der nächste Zeiger in der Eingangssequenz, Ausgangssequenz oder sowohl mit absoluten Adressierung Original: repositions the next pointer in the input sequence, output sequence, or both using absolute addressing The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] | synchronisiert die Puffer mit der zugehörigen Zeichenfolge Original: synchronizes the buffers with the associated character sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
Original: Get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] | ermittelt die Anzahl der Zeichen für die Eingabe in dem zugehörigen Eingabesequenz, falls bekannt Original: obtains the number of characters available for input in the associated input sequence, if known The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] | liest Zeichen aus dem dazugehörigen Eingang Sequenz an die get-Bereich Original: reads characters from the associated input sequence to the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] | liest Zeichen aus dem dazugehörigen Eingang Sequenz an die get-Bereich und Fortschritte der nächste Zeiger Original: reads characters from the associated input sequence to the get area and advances the next pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
[virtuell] | liest mehreren Zeichen der Eingabesequenz Original: reads multiple characters from 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. (virtuellen geschützten Member-Funktion) |
liefert einen Zeiger auf den Anfang, aktuellen Charakter und Ende des get-Bereich Original: returns a pointer to the beginning, current character and the end of the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
Fortschritte der nächste Zeiger in der Eingabesequenz Original: advances the next pointer 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. (geschützt Member-Funktion) | |
repositioniert der Anfang, nächsten und Endzeiger der Eingabesequenz Original: repositions the beginning, next, and end pointers of 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. (geschützt Member-Funktion) | |
Original: Put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] | writes multiple characters to the output sequence (virtuellen geschützten Member-Funktion) |
[virtuell] | schreibt Zeichen auf die zugehörige Ausgangsscheibe Sequenz aus dem Bereich gebracht Original: writes characters to the associated output sequence from the put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuellen geschützten Member-Funktion) |
liefert einen Zeiger auf den Anfang, aktuelle Zeichen und das Ende der Put-Bereich Original: returns a pointer to the beginning, current character and the end of the put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
Fortschritte der nächste Zeiger der Ausgangssequenz Original: advances the next pointer of the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
repositioniert der Anfang, nächsten und Endzeiger der Ausgangssequenz Original: repositions the beginning, next, and end pointers of the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (geschützt Member-Funktion) | |
Original: Putback The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[virtuell] | stellt ein Zeichen wieder in der Eingangssequenz, gegebenenfalls Modifizierung der Eingabesequenz 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. (virtuellen geschützten Member-Funktion) |