|
ADS
Algorithms and Data Structures
|
appends to a file through a buffer of one block, \( B \) items of the memory; the last partial block is written by close() or by the destructor More...
#include <ADS/external/TwoLevelMemory.h>
Public member functions | |
| DiskWriter (DiskFile< T > &f) | |
| the writer at the end of f, its buffer taken from the memory of f | |
| DiskWriter (const DiskWriter &)=delete | |
| no copy, since the buffer is leased from the memory | |
| DiskWriter & | operator= (const DiskWriter &)=delete |
| no copy, since the buffer is leased from the memory | |
| ~DiskWriter () | |
| close(), if not closed yet | |
| void | push (const T &x) |
| appends \( x \), writing the buffer when it is full | |
| void | close (void) |
| writes the partial block, if any; no push() after it | |
appends to a file through a buffer of one block, \( B \) items of the memory; the last partial block is written by close() or by the destructor
|
explicit |
the writer at the end of f, its buffer taken from the memory of f
|
delete |
no copy, since the buffer is leased from the memory
| ADS::DiskWriter< T >::~DiskWriter | ( | ) |
close(), if not closed yet
| void ADS::DiskWriter< T >::close | ( | void | ) |
writes the partial block, if any; no push() after it
|
delete |
no copy, since the buffer is leased from the memory
| void ADS::DiskWriter< T >::push | ( | const T & | x | ) |
appends \( x \), writing the buffer when it is full