std::basic_stringbuf
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>| definiert in Header <sstream>
|
||
template< class charT, class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT> > class basic_stringbuf : public std::basic_streambuf<CharT, Traits> |
||
std::basic_stringbuf ist ein std::basic_streambuf deren zugehörige Zeichenfolge ist ein Speicher-residente Folge von beliebigen Zeichen, die aus initialisiert werden kann oder aus als Instanz std::basic_string zur Verfügung .Original:
std::basic_stringbuf is a std::basic_streambuf whose associated character sequence is a memory-resident sequence of arbitrary characters, which can be initialized from or made available as an instance of std::basic_string.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 Implementierungen
std::basic_stringbuf halten ein Objekt vom Typ std::basic_string direkt als Datenelement und als sowohl die kontrollierte Zeichensequenz (das Array, wobei die sechs Zeiger std::basic_streambuf zu weisenden sind) und als zugeordnete Zeichen-Sequenz (die Quelle für alle Zeichen Eingabeoperationen und das Target für die Ausgabe). Zusätzlich hält eine typische Implementierung eines Datenelements vom Typ std::ios_base::openmode, um den Status des Stroms (eingangsseitigen nur Nur-Ausgabe-oder Eingabe / Ausgabe) weisen .Original:
Typical implementations of
std::basic_stringbuf hold an object of type std::basic_string directly as a data member and use it as both the controlled character sequence (the array where the six pointers of std::basic_streambuf are pointing to) and as the associated character sequence (the source of characters for all input operations and the target for the output). In addition, a typical implementation holds a data member of type std::ios_base::openmode to indicate the status of the stream (input-only, output-only, or input/output).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.
Zwei Spezialisierungen für gemeinsame Charakter-Typen sind ebenfalls definiert:
Original:
Two specializations for common character types are also defined:
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
<sstream> | |
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 |
stringbuf
|
basic_stringbuf<char>
|
wstringbuf
|
basic_stringbuf<wchar_t>
|
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
|
allocator_type
|
Allocator (seit C++11)
|
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 basic_stringbuf Objekt Original: constructs a basic_stringbuf 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) | |
(C++11) |
assigns a basic_stringbuf object (öffentliche Elementfunktion) |
(C++11) |
Swaps zwei basic_stringbuf Objekte Original: swaps two basic_stringbuf objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |
(destructor) [virtuell] (implizit deklariert) |
destructs a basic_stringbuf object and the string it holds (virtuellen öffentlichen Member-Funktion) |
ersetzt oder erhält eine Kopie des zugehörigen Zeichenkette Original: replaces or obtains a copy of the associated character string 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. | |
[virtuell] |
gibt das nächste Zeichen in der Eingabesequenz Original: returns the next character available 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. (virtuellen geschützten Member-Funktion) |
[virtuell] |
setzt ein Zeichen in die Eingabe-Sequenz Original: puts 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. (virtuellen geschützten Member-Funktion) |
[virtuell] |
anhängt ein Charakter mit dem Ausgang Sequenz Original: appends a character to 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. (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) |
Non-Member-Funktionen
spezialisiert die std::swap Algorithmus Original: specializes the std::swap algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) | |
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
|
traits_type
|
Traits
|
int_type
|
Traits::int_type
|
pos_type
|
Traits::pos_type
|
off_type
|
Traits::off_type
|
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)
|
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)
| |
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)
| |
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)
| |
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)
| |
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)
| |
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)
| |
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)
| |
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)
| |
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)
| |
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 of std::basic_streambuf)
| |
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)
| |
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)
| |
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)
| |
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)
| |
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)
| |
