Thrill
0.1
|
Buffered output stream.
Writes data records to the stream of blocks.
Definition at line 30 of file buf_ostream.hpp.
#include <buf_ostream.hpp>
Public Types | |
using | bid_iterator_type = BidIteratorType |
using | block_type = BlockType |
using | const_reference = typename block_type::const_reference |
using | reference = typename block_type::reference |
using | self_type = buf_ostream< block_type, bid_iterator_type > |
Public Member Functions | |
buf_ostream (bid_iterator_type first_bid, size_t nbuffers) | |
buf_ostream (const buf_ostream &)=delete | |
non-copyable: delete copy-constructor More... | |
~buf_ostream () | |
Deallocates internal objects. More... | |
reference | current () |
self_type & | fill (const_reference record) |
Fill current block with padding and flush. More... | |
self_type & | flush () |
reference | operator* () |
self_type & | operator++ () |
self_type & | operator<< (const_reference record) |
buf_ostream & | operator= (const buf_ostream &)=delete |
non-copyable: delete assignment operator More... | |
Protected Attributes | |
bid_iterator_type | current_bid |
block_type * | current_blk |
size_t | current_elem |
buffered_writer< block_type > | writer |
using bid_iterator_type = BidIteratorType |
Definition at line 34 of file buf_ostream.hpp.
using block_type = BlockType |
Definition at line 33 of file buf_ostream.hpp.
using const_reference = typename block_type::const_reference |
Definition at line 43 of file buf_ostream.hpp.
using reference = typename block_type::reference |
Definition at line 44 of file buf_ostream.hpp.
using self_type = buf_ostream<block_type, bid_iterator_type> |
Definition at line 45 of file buf_ostream.hpp.
|
inline |
Constructs output stream object.
first_bid | bid_iterator pointing to the first block of the stream |
nbuffers | number of buffers for internal use |
Definition at line 50 of file buf_ostream.hpp.
References buffered_writer< BlockType >::get_free_block(), and buf_ostream< BlockType, BidIteratorType >::operator=().
|
delete |
non-copyable: delete copy-constructor
|
inline |
Deallocates internal objects.
Definition at line 123 of file buf_ostream.hpp.
|
inline |
Returns reference to the current record.
Definition at line 78 of file buf_ostream.hpp.
References buf_ostream< BlockType, BidIteratorType >::current_elem.
|
inline |
Fill current block with padding and flush.
Definition at line 104 of file buf_ostream.hpp.
References buf_ostream< BlockType, BidIteratorType >::operator<<().
|
inline |
Force flush of current block, for finishing writing within a block.
Definition at line 115 of file buf_ostream.hpp.
References buffered_writer< BlockType >::write().
|
inline |
Returns reference to the current record.
Definition at line 85 of file buf_ostream.hpp.
References buf_ostream< BlockType, BidIteratorType >::current_elem.
|
inline |
Moves to the next record in the stream.
Definition at line 92 of file buf_ostream.hpp.
References buf_ostream< BlockType, BidIteratorType >::current_elem, TLX_UNLIKELY, and buffered_writer< BlockType >::write().
|
inline |
Output stream operator, writes out record
.
record | const reference to block record type, containing a value of record to write to the stream |
Definition at line 65 of file buf_ostream.hpp.
References TLX_UNLIKELY, and buffered_writer< BlockType >::write().
Referenced by buf_ostream< BlockType, BidIteratorType >::fill().
|
delete |
non-copyable: delete assignment operator
Referenced by buf_ostream< BlockType, BidIteratorType >::buf_ostream().
|
protected |
Definition at line 38 of file buf_ostream.hpp.
|
protected |
Definition at line 40 of file buf_ostream.hpp.
|
protected |
Definition at line 39 of file buf_ostream.hpp.
Referenced by buf_ostream< BlockType, BidIteratorType >::current(), buf_ostream< BlockType, BidIteratorType >::operator*(), and buf_ostream< BlockType, BidIteratorType >::operator++().
|
protected |
Definition at line 37 of file buf_ostream.hpp.