Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions | Protected Member Functions
ext::fdstreambuf Class Referencefinal

Class representing buffered stream designed to work on defined file descriptor instead of usual file name. More...

#include <fdstream.hpp>

Inheritance diagram for ext::fdstreambuf:
[legend]
Collaboration diagram for ext::fdstreambuf:
[legend]

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...
 
fdstreambufoperator= (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...
 

Detailed Description

Class representing buffered stream designed to work on defined file descriptor instead of usual file name.

Constructor & Destructor Documentation

◆ fdstreambuf() [1/2]

ext::fdstreambuf::fdstreambuf ( int  fileDescriptor)
explicit

Constructor of the fdstreambuf.

Parameters
fdthe file descriptor number

◆ ~fdstreambuf()

ext::fdstreambuf::~fdstreambuf ( )
override

The destructor of the fdstreambuf.

Here is the call graph for this function:

◆ fdstreambuf() [2/2]

ext::fdstreambuf::fdstreambuf ( const fdstreambuf )
delete

Do not allow to copy construct the fdsreambuf.

Member Function Documentation

◆ operator=()

fdstreambuf & ext::fdstreambuf::operator= ( const fdstreambuf )
delete

Do not allow to copy assign the fdsreambuf.

◆ overflow()

fdstreambuf::int_type ext::fdstreambuf::overflow ( int_type  )
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.

◆ pbackfail()

fdstreambuf::int_type ext::fdstreambuf::pbackfail ( int_type  c = traits_type::eof ( ))
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.

◆ sync()

int ext::fdstreambuf::sync ( )
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.

Here is the caller graph for this function:

◆ underflow()

fdstreambuf::int_type ext::fdstreambuf::underflow ( )
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.


The documentation for this class was generated from the following files: