std::basic_streambuf::pubsetbuf

basic_streambuf<CharT, Traits>* pubsetbuf( char_type* s, std::streamsize n ) (1) protected: virtual basic_streambuf<CharT, Traits>* setbuf( char_type* s, std::streamsize n ) (2) 1) Calls setbuf(s, n) of the most derived class 2) The base class version of this function has no effect. The derived classes may override this function to allow removal or replacement of the controlled character sequence (the buffer) with a user-provided array, or for any other implementatio

std::basic_streambuf::pubseekpos

pos_type pubseekpos( pos_type pos, ios_base::openmode which = ios_base::in | ios_base::out ); (1) protected: virtual pos_type seekpos( pos_type pos, ios_base::openmode which = ios_base::in | ios_base::out); (2) Sets the position indicator of the input and/or output sequence to an absolute position. 1) Calls seekpos(pos, which) of the most derived class. 2) The base class version of this function has no effect. The derived classes may

std::basic_streambuf::pubseekoff

pos_type pubseekoff( off_type off, ios_base::seekdir dir, ios_base::openmode which = ios_base::in | ios_base::out ); (1) protected: virtual pos_type seekoff( off_type off, ios_base::seekdir dir, ios_base::openmode which = ios_base::in | ios_base::out ); (2) Sets the position indicator of the input and/or output sequence relative to some other position. 1) Calls seekoff(off, dir, which) of the most derived class. 2) The base class vers

std::basic_streambuf::pubimbue

std::locale pubimbue( const std::locale& loc ); (1) protected: virtual void imbue( const std::locale& loc ); (2) Changes the associated locale. 1) Calls imbue(loc) of the most derived class. 2) The base class version of this function has no effect. The derived classes may override this function in order to be informed about the changes of the locale. The derived class may cache the locale and member facets between calls to imbue(). Parameters loc - locale object to

std::basic_streambuf::pbump

void pbump( int count ); Repositions the put pointer (pptr()) by count characters, where count may be positive or negative. No checks are done for moving the pointer outside the put area [pbase(), epptr()). If the pointer is advanced and then overflow() is called to flush the put area to the associated character sequence, the effect is that extra count characters with undefined values are output. Parameters count - number to add to the put pointer Return value (none). Ex

std::basic_streambuf::pbase

char_type* pbase() const; (1) char_type* pptr() const; (2) char_type* epptr() const; (3) Returns pointers defining the put area. 1) Returns the pointer to the beginning of the put area. 2) Returns the pointer to the current character (put pointer) in the put area. 3) Returns the pointer to the end of the put area. Parameters (none). Return value 1) The pointer to the beginning of the put area. 2) The pointer to the current character (put pointer) in the put area. 3) Th

std::basic_streambuf::pbackfail

protected: virtual int_type pbackfail( int_type c = Traits::eof() ); This protected virtual function is called by the public functions sungetc() and sputbackc() (which, in turn, are called by basic_istream::unget and basic_istream::putback) when either: 1) There is no putback position in the get area (pbackfail() is called with no arguments). In this situation, the purpose of pbackfail() is to back up the get area by one character, if the associated character sequence allows this (e.g.

std::basic_streambuf::overflow

virtual int_type overflow( int_type ch = traits::eof() ); Ensures that there is space at the put area for at least one character by saving some initial subsequence of characters starting at pbase() to the output sequence and updating the pointers to the put area (if needed). If ch is not Traits::eof() (i.e. Traits::eq_int_type(ch, Traits::eof()) != true), it is either put to the put area or directly saved to the output sequence. The function may update pptr, epptr and pbase pointers to

std::basic_streambuf::in_avail

std::streamsize in_avail(); Returns the number of characters available in the get area. If a read position is available, effectively returns egptr() - gptr(), the size of the get area. In this case, the number of bytes returned is the number of bytes that can be extracted from the buffer without calling underflow(). If the get area is empty, calls showmanyc() to determine the number of bytes available in the associated character sequence. In this case, the value returned is the number o

std::basic_streambuf::getloc

std::locale getloc() const; Returns the associated locale. The associated locale is the value supplied to pubimbue() on the last call, or, if that function has not been called, the value of the global locale (std::locale) at the time of the construction of the streambuf. Parameters (none). Return value The associated locale. Example See also pubimbue invokes imbue() (public member function)