Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Class representing buffered stream designed to work on defined file descriptor instead of usual file name. More...
#include <fdstream.hpp>
Public Member Functions | |
fdstreambuf (int fileDescriptor) | |
Constructor of the fdstreambuf. More... | |
~fdstreambuf () override | |
The destructor of the fdstreambuf. More... | |
fdstreambuf (const fdstreambuf &)=delete | |
Do not allow to copy construct the fdsreambuf. More... | |
fdstreambuf & | operator= (const fdstreambuf &)=delete |
Do not allow to copy assign the fdsreambuf. More... | |
Protected Member Functions | |
int_type | pbackfail (int_type) override |
Put character back in the case of backup underflow. More... | |
int_type | underflow () override |
Get character on underflow. More... | |
int_type | overflow (int_type) override |
Put character on overflow. More... | |
int | sync () override |
Synchronize stream buffer. More... | |
Class representing buffered stream designed to work on defined file descriptor instead of usual file name.
|
explicit |
Constructor of the fdstreambuf.
fd | the file descriptor number |
|
override |
The destructor of the fdstreambuf.
|
delete |
Do not allow to copy construct the fdsreambuf.
|
delete |
Do not allow to copy assign the fdsreambuf.
|
overrideprotected |
Put character on overflow.
Virtual function called by other member functions to put a character into the controlled output sequence without changing the current position.
For more defails see the documentation of the standard library.
|
overrideprotected |
Put character back in the case of backup underflow.
Virtual function called by other member functions to put a character back into the controlled input sequence and decrease the position indicator.
For more defails see the documentation of the standard library.
|
overrideprotected |
Synchronize stream buffer.
Virtual function called by the public member function pubsync to synchronize the contents in the buffer with those of the associated character sequence.
For more defails see the documentation of the standard library.
|
overrideprotected |
Get character on underflow.
Virtual function called by other member functions to get the current character in the controlled input sequence without changing the current position.
For more defails see the documentation of the standard library.