Espacios de nombres
Variantes
Acciones

std::strstreambuf

De cppreference.com
< cpp‎ | io

 
 
Entrada / salida de la biblioteca
I / O manipuladores
C-estilo I / O
Buffers
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strstreambuf
(obsoleto)
Arroyos
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstracciones
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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.
Cadena de 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.
Matriz 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.
(obsoleto)
(obsoleto)
(obsoleto)
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Error interfaz categoría
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.
(C++11)
 
std::strstreambuf
Las funciones públicas miembros
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.
Protegido funciones miembro
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.
 
Definido en la cabecera <strstream>
class strstreambuf : public std::basic_streambuf<char>
(obsoleto)
std::strstreambuf es un std::basic_streambuf cuyo asociada secuencia de caracteres es una matriz de caracteres, que puede ser constante (por ejemplo, una cadena literal), modifyable pero no dinámica (por ejemplo, una pila asignado array), o dinámica, en cuyo caso el std::strstreambuf puede ser permitido para reasignar la matriz como necesario para acomodar la producción (por ejemplo, llamando delete[] y new[] proporcionados por el usuario o funciones) .
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.
Implementación típica de un std::strstreambuf cuenta con cuatro miembros de datos privados:
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)
Estado tapón, un tipo de máscara de bits que pueden representar cualquier combinación de los cuatro valores "asignados" (destructor desasignar), "constante" (salida no permitido), "dinámica" (salida puede reasignar), o "congelado" (salida, desasignación , la reasignación no se permiten)
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)
tamaño del búfer asignado
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)
puntero al proporcionado por el usuario función de asignación
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)
puntero al proporcionado por el usuario función desasignación .
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.

Contenido

[editar] Notas

Después de cualquier llamada a str(), una llamada a freeze(false) es necesario para permitir que el destructor strstreambuf para desasignar la memoria intermedia cuando sea necesario .
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.

[editar] Las funciones miembro

Las funciones públicas miembros
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.

construye un objeto strstreambuf
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.

(función miembro público)
[virtual]
destructs un objeto strstreambuf, opcionalmente desasignar la matriz de caracteres
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.

(función miembro público virtual)
establece / borra el estado congelado de la memoria intermedia
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.

(función miembro público)
marca el tampón congelado y devuelve el puntero de inicio de la secuencia de entrada
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.

(función miembro público)
devuelve el siguiente puntero menos el puntero a partir de la secuencia de salida: el número de caracteres escritos
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.

(función miembro público)

Protegido funciones miembro
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.

[virtual]
dice un personaje de la secuencia de entrada sin avanzar el puntero siguiente
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.

(función miembro virtual protegido)
[virtual]
vuelve a poner a un personaje en la secuencia de entrada
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.

(función miembro virtual protegido)
[virtual]
añade un carácter a la secuencia de salida, podrá reasignar o inicialmente asignar el búfer si se congela y no dinámico
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.

(función miembro virtual protegido)
[virtual]
intentos de reemplazar la secuencia de caracteres controlada con una matriz
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.

(función miembro virtual protegido)
[virtual]
reposiciona el puntero siguiente en la secuencia de entrada, la secuencia de salida, o ambas, mediante el direccionamiento relativo
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.

(función miembro virtual protegido)
[virtual]
reposiciona el puntero siguiente en la secuencia de entrada, la secuencia de salida, o ambos utilizando el direccionamiento absoluto
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.

(función miembro virtual protegido)

Inherited from std::basic_streambuf

Member types

Miembro de tipo
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[editar]
traits_type Traits[editar]
int_type Traits::int_type[editar]
pos_type Traits::pos_type[editar]
off_type Traits::off_type[editar]

Member functions

[virtual]
destructs el objeto basic_streambuf
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.

(función miembro público virtual de std::basic_streambuf) [editar]
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.
Invoca 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.

(función miembro público de std::basic_streambuf) [editar]
obtiene una copia de la configuración regional asociado
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.

(función miembro público de std::basic_streambuf) [editar]
Posicionamiento
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Invoca 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.

(función miembro público de std::basic_streambuf) [editar]
Invoca 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.

(función miembro público de std::basic_streambuf) [editar]
Invoca 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.

(función miembro público de std::basic_streambuf) [editar]
Invoca 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.

(función miembro público de std::basic_streambuf) [editar]
Obtenga zona
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.
obtiene el número de caracteres disponibles de inmediato en la zona get
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.

(función miembro público de std::basic_streambuf) [editar]
avanza la secuencia de entrada, entonces lee un carácter sin avanzar de nuevo
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.

(función miembro público de std::basic_streambuf) [editar]
lee un carácter de la secuencia de entrada y hace avanzar la secuencia
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.

(función miembro público de std::basic_streambuf) [editar]
stossc
(obsoleto)
avanza la secuencia de entrada como si se aplicase sbumpc() y descartar el resultado
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.

(función miembro público) [editar]
lee un carácter de la secuencia de entrada sin avanzar la secuencia
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.

(función miembro público de std::basic_streambuf) [editar]
Invoca 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.

(función miembro público de std::basic_streambuf) [editar]
Ponga zona
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.
escribe un carácter a la zona de suelta y avanza el puntero siguiente
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.

(función miembro público de std::basic_streambuf) [editar]
Invoca 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.

(función miembro público de std::basic_streambuf) [editar]
Dos puntos
Original:
Putback
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pone un personaje nuevo en la secuencia de entrada
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.

(función miembro público de std::basic_streambuf) [editar]
mueve el puntero siguiente en la secuencia de entrada de vuelta a 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.

(función miembro público de std::basic_streambuf) [editar]

Protected member functions

construye un objeto basic_streambuf
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.

(función miembro protegido) [editar]
(C++11)
sustituye a un objeto basic_streambuf
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.

(función miembro protegido) [editar]
(C++11)
swaps dos objetos basic_streambuf
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.

(función miembro protegido) [editar]
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.
[virtual]
cambia la configuración regional asociado
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
Posicionamiento
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[virtual]
reemplaza el tampón con matriz definida por el usuario, si así lo permite
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
[virtual]
reposiciona el puntero siguiente en la secuencia de entrada, la secuencia de salida, o ambas, mediante el direccionamiento relativo
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
[virtual]
reposiciona el puntero siguiente en la secuencia de entrada, la secuencia de salida, o ambos utilizando el direccionamiento absoluto
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
[virtual]
sincroniza los tampones con la secuencia de caracteres asociado
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
Obtenga zona
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.
[virtual]
obtiene el número de caracteres disponibles para la entrada en la secuencia de entrada asociado, si se conoce
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
[virtual]
lee los caracteres de la secuencia de entrada asociado a la zona de get
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
[virtual]
lee los caracteres de la secuencia de entrada asociado a la zona de get y avanza el siguiente
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
[virtual]
lee los caracteres múltiples de la secuencia de entrada
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
devuelve un puntero al comienzo, el carácter actual y el final de la zona de obtención
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.

(función miembro protegido) [editar]
avanza el puntero siguiente en la secuencia de entrada
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.

(función miembro protegido) [editar]
reposiciona el comienzo, al lado, y al final los punteros de la secuencia de entrada
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.

(función miembro protegido) [editar]
Ponga zona
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.
[virtual]
writes multiple characters to the output sequence
(función miembro virtual protegido de std::basic_streambuf) [editar]
[virtual]
escribe los caracteres a la secuencia de salida asociado del área de venta
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]
devuelve un puntero al comienzo, carácter actual y el final del área de poner
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.

(función miembro protegido) [editar]
avanza el puntero siguiente de la secuencia de salida
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.

(función miembro protegido) [editar]
reposiciona el comienzo, al lado, y al final los punteros de la secuencia de salida
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.

(función miembro protegido) [editar]
Dos puntos
Original:
Putback
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[virtual]
pone un carácter de nuevo en la secuencia de entrada, la posibilidad de modificar la secuencia de entrada
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.

(función miembro virtual protegido de std::basic_streambuf) [editar]