class
<streambuf> <iostream>
std::wstreambuf
typedef basic_streambuf<wchar_t> wstreambuf;
Base buffer class for streams (wide)
This template is designed as base virtual class for all stream buffer classes that handle wide characters (of type wchar_t
). See basic_streambuf for more info on the template.
It instantiates basic_streambuf with the following template parameters:
template parameter | definition | comments |
charT | wchar_t | Aliased as member char_type |
traits | char_traits<wchar_t> | Aliased as member traits_type |
Public member functions
Note: The references to the members of its basic template (basic_streambuf) are linked here.
- (constructor)
- Construct object (public member function)
- (destructor)
- Destroy object (public member function)
Locales:
- pubimbue
- Imbue locale (public member function)
- getloc
- Get current locale (public member function)
Buffer management and positioning:
- pubsetbuf
- Set buffer array (public member function)
- pubseekoff
- Set internal position pointer to relative position (public member function)
- pubseekpos
- Set internal position pointer to absolute position (public member function)
- pubsync
- Synchronize stream buffer (public member function)
Input functions (get):
- in_avail
- Get number of character available to read (public member function)
- snextc
- Advance to next position and get character (public member function)
- sbumpc
- Get current character and advance to next position (public member function)
- sgetc
- Get current character (public member function)
- sgetn
- Get sequence of characters (public member function)
- sputbackc
- Put character back (public member function)
- sungetc
- Decrease current position (public member function)
Output functions (put):
- sputc
- Put character and advance to next position (public member function)
- sputn
- Put sequence of characters (public member function)
Protected member functions
Note: The references to the members of its basic template (basic_streambuf) are linked here.
Input sequence (get):
- eback
- Pointer to beginning of input sequence (protected member function)
- gptr
- Pointer to current position of input sequence (protected member function)
- egptr
- Pointer to end of input sequence (protected member function)
- gbump
- Advance get pointer (protected member function)
- setg
- Set input sequence pointers (protected member function)
Output sequence (put):
- pbase
- Pointer to beginning of output sequence (protected member function)
- pptr
- Pointer to current position of output sequence (protected member function)
- epptr
- Pointer to end of output sequence (protected member function)
- pbump
- Increase put pointer (protected member function)
- setp
- Set output sequence pointers (protected member function)
Copying:
- operator=
- Stream buffer assignment (public member function)
- swap
- Swap stream buffers (public member function)
Virtual protected member functions
Note: The references to the members of its basic template (basic_streambuf) are linked here.
Locales:
- imbue
- Imbue locale (protected virtual member function)
Buffer management and positioning:
- setbuf
- Set buffer (protected virtual member function)
- seekoff
- Set internal position pointer to relative position (protected virtual member function)
- seekpos
- Set internal position pointer to absolute position (protected virtual member function)
- sync
- Synchronize stream buffer (protected virtual member function)
Input functions (get):
- showmanyc
- Get number of characters available (protected virtual member function)
- xsgetn
- Get sequence of characters (protected virtual member function)
- underflow
- Get character on underflow (protected virtual member function)
- uflow
- Get character on underflow and advance position (protected virtual member function)
- pbackfail
- Put character back on underflow (protected virtual member function)
Output functions (put):
- xsputn
- Put sequence of characters (public member function)
- overflow
- Put character on overflow (protected virtual member function)