hamcast
Version 0.7
|
#include <closeable.hpp>
Public Member Functions | |
virtual void | close ()=0 |
virtual bool | closed () const =0 |
![]() | |
long | ref_count () |
Additional Inherited Members | |
![]() | |
static void | add_ref (ref_counted *rc) |
static void | release (ref_counted *rc) |
![]() | |
ref_counted () | |
void | ref () |
bool | deref () |
Describes a closeable input and/or output channel.
|
pure virtual |
Close the data channel.
Implemented in hamcast::util::write_buffer< block_size, maximum_size >, hamcast::util::buffered_source< block_size, maximum_size >, hamcast::util::read_buffer, and hamcast::util::buffered_sink< block_size, maximum_size >.
|
pure virtual |
Check if the data channel is closed.
true
if this
is closed for read/write operations; otherwise false
. Implemented in hamcast::util::write_buffer< block_size, maximum_size >, hamcast::util::buffered_source< block_size, maximum_size >, hamcast::util::read_buffer, and hamcast::util::buffered_sink< block_size, maximum_size >.