basic_streambuf streambuf wstreambuf Buffer class for streams | iostream library |
cplusplus.com |
|
|
|||
|
pubimbue Imbue locale getloc Get current locale pubsetbuf Set buffer array pubseekoff Set relative position of internal position pointer pubseekpos Set absolute position of internal position pointer pubsync Synchronize stream in_avail Get number of characters available in input buffer snextc Increase get pointer and return next character sbumpc Get current character and increase get pointer sgetc Get current character sgetn Get some characters sputbackc Put character back sungetc Decrease get pointer sputc Store character at current put position and increase put pointer sputn Write some characters (destructor) No-op [virtual]
(constructor) Construct an object eback Get pointer to beginning of input sequence egptr Get pointer to end of input seuqence epptr Get pointer to end of output sequence gbump Increase get pointer gptr Return get pointer pbase Get pointer to beginning of output sequence pbump Increase put pointer pptr Return put pointer setg Set input buffer pointers setp Set output buffer pointers imbue Imbue locale [virtual] overflow Put character at current position [virtual] pbackfail Put character back [virtual] seekoff Set relative position of internal position pointer [virtual] seekpos Set absolute position of internal position pointer [virtual] setbuf Set buffer [virtual] showmanyc Get number of characters availbale in input sequence [virtual] sync Synchronize stream buffer [virtual] uflow Get current character [virtual] underflow Get current character [virtual] xsgetn Get some characters [virtual] xsputn Write some characters [virtual]
Description:
This is an abstract base class for deriving stream buffer objects.
A streambuf-derived object mantains internally a locale object and up to two character sequences: one used
as input sequence, where characters are extracted from, and the other is the output
sequence, where output characters are written. An object may have access to one, both,
or none of these sequences depending on the type of strembuf-derived object and the
openmode used.
Both, input and output sequence, are related in a way that one may be affected by changes
on the other, for example, a character written may be later read in a stream buffer
that supports both input and output operations.
Each stream object of the iostream hierarchy mantains internally a pointer to a
streambuf or a strembuf-derived object.
The streambuf class is an elaborated abstract base class with three main
groups of members:
Internal pointer | input sequence | output sequence |
---|---|---|
Beginning of sequence | eback | pbase |
Next element in the sequence | gptr | pptr |
End (just past last element) of sequence | egptr | epptr |