Namensräume
Varianten
Aktionen

std::strstreambuf

Aus cppreference.com
< cpp‎ | io

 
 
Input / Output-Bibliothek
I / O-Manipulatoren
C-style I / O
Puffern
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(veraltet)
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.
Abstraktionen
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
Datei-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(veraltet)
ostrstream(veraltet)
strstream(veraltet)
Types
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
Fehler Kategorie Schnittstelle
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::strstreambuf
Öffentliche Member-Funktionen
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.
strstreambuf::strstreambuf
strstreambuf::~strstreambuf
strstreambuf::freeze
strstreambuf::str
strstreambuf::pcount
Geschützt Member-Funktionen
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.
strstreambuf::underflow
strstreambuf::pbackfail
strstreambuf::overflow
strstreambuf::setbuf
strstreambuf::seekoff
strstreambuf::seekpos
 
Defined in header <strstream>
class strstreambuf : public std::basic_streambuf<char>
(veraltet)
std::strstreambuf ist ein std::basic_streambuf deren zugehörige Zeichen-Sequenz eine Zeichengruppe, die konstant sein kann (zB ein Zeichenfolgenliteral), aber nicht modifyable dynamischen (zB ein Stapel zugeordnete Array) oder dynamisch, in welchem ​​Fall die std::strstreambuf erlaubt werden kann, werden umzuverteilen das Array als notwendig Ausgang unterbringen (zB durch den Aufruf delete[] und new[] oder vom Benutzer bereitgestellten Funktionen) .
Original:
std::strstreambuf is a std::basic_streambuf whose associated character sequence is a character array, which may be constant (e.g. a string literal), modifyable but not dynamic (e.g. a stack-allocated array), or dynamic, in which case the std::strstreambuf may be allowed to reallocate the array as necessary to accomodate output (e.g. by calling delete[] and new[] or user-provided functions).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Typische Implementierung eines std::strstreambuf hält vier privaten Daten Mitglieder:
Original:
Typical implementation of a std::strstreambuf holds four private data members:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Pufferstaat, eine Bitmaske Art, die eine beliebige Kombination der vier Werte "zugeteilt" (Destruktor freizugeben), "konstant" (Ausgang nicht erlaubt), "dynamisch" (Ausgabe kann umzuschichten) oder "eingefroren" (Ausgang, deallocation darstellen kann sind Umverteilung nicht erlaubt)
Original:
buffer state, a bitmask type which can represent any combination of the four values "allocated" (destructor will deallocate), "constant" (output not allowed), "dynamic" (output may reallocate), or "frozen" (output, deallocation, reallocation are not allowed)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
zugeordnet Puffergröße
Original:
allocated buffer size
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Zeiger auf vom Benutzer bereitgestellten Zuweisung Funktion
Original:
pointer to user-provided allocation function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
Zeiger auf deallocation Funktion vom Benutzer bereitgestellten .
Original:
pointer to user-provided deallocation function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Notes

Nach jeder Aufruf str(), ein Aufruf an freeze(false) ist erforderlich, damit die strstreambuf destructor den Puffer freizugeben, wenn nötig .
Original:
After any call to str(), a call to freeze(false) is required to allow the strstreambuf destructor to deallocate the buffer when necessary.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Member-Funktionen

Öffentliche Member-Funktionen
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.

konstruiert eine strstreambuf Objekt
Original:
constructs a strstreambuf object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(öffentliche Elementfunktion)
[virtuell]
zerstört sich eine strstreambuf Objekt, optional Freigeben des Zeichen-Array
Original:
destructs a strstreambuf object, optionally deallocating the character array
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)
setzt / löscht den gefrorenen Zustand des Puffers
Original:
sets/clears the frozen state 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.

(öffentliche Elementfunktion)
markiert den Puffer eingefroren und gibt die Zeiger beginnen der Eingabesequenz
Original:
marks the buffer frozen and returns the beginning pointer 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.

(öffentliche Elementfunktion)
gibt den nächsten Zeiger abzüglich des beginnenden Zeiger in der Ausgangssequenz: die Anzahl der geschriebenen Zeichen
Original:
returns the next pointer minus the beginning pointer in the output sequence: the number of characters written
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(öffentliche Elementfunktion)

Geschützt Member-Funktionen
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.

[virtuell]
liest ein Zeichen aus der Eingabesequenz ohne dabei den nächsten Zeiger
Original:
reads a character from the input sequence without advancing 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]
setzt wieder ein Zeichen in der Eingabesequenz
Original:
puts back a character 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.

(virtuellen geschützten Member-Funktion)
[virtuell]
fügt ein Zeichen an die Ausgabe-Sequenz kann umzuschichten oder zunächst die Aufteilung der Puffer, wenn dynamisch und nicht eingefroren
Original:
appends a character to the output sequence, may reallocate or initially allocate the buffer if dynamic and not frozen
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]
Versuche, den gesteuerten Zeichensequenz mit einer Anordnung ersetzen
Original:
attempts to replace the controlled character sequence with an array
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)

Inherited from std::basic_streambuf

Member types

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[edit]
traits_type Traits[edit]
int_type Traits::int_type[edit]
pos_type Traits::pos_type[edit]
off_type Traits::off_type[edit]

Member functions

[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 of std::basic_streambuf) [edit]
Locales
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
Positionierung
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
Get area
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
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) [edit]
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
Legen Bereich
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]
Putback
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 of std::basic_streambuf) [edit]
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 of std::basic_streambuf) [edit]

Protected member functions

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) [edit]
(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) [edit]
(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) [edit]
Locales
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 of std::basic_streambuf) [edit]
Positionierung
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 of std::basic_streambuf) [edit]
[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 of std::basic_streambuf) [edit]
[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 of std::basic_streambuf) [edit]
[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 of std::basic_streambuf) [edit]
Get area
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 of std::basic_streambuf) [edit]
[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 of std::basic_streambuf) [edit]
[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 of std::basic_streambuf) [edit]
[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 of std::basic_streambuf) [edit]
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) [edit]
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) [edit]
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) [edit]
Legen Bereich
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 of std::basic_streambuf) [edit]
[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 of std::basic_streambuf) [edit]
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) [edit]
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) [edit]
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) [edit]
Putback
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 of std::basic_streambuf) [edit]