STXXL
1.4-dev
|
Buffered output stream.
Writes data records to the stream of blocks.
Definition at line 29 of file buf_ostream.h.
Public Types | |
typedef BidIteratorType | bid_iterator_type |
typedef BlockType | block_type |
typedef block_type::const_reference | const_reference |
typedef block_type::reference | reference |
typedef buf_ostream < block_type, bid_iterator_type > | self_type |
Public Member Functions | |
buf_ostream (bid_iterator_type first_bid, int_type nbuffers) | |
Constructs output stream object. More... | |
~buf_ostream () | |
Deallocates internal objects. More... | |
reference | current () |
Returns reference to the current record. More... | |
self_type & | fill (const_reference record) |
Fill current block with padding and flush. More... | |
self_type & | flush () |
Force flush of current block, for finishing writing within a block. More... | |
reference | operator* () |
Returns reference to the current record. More... | |
self_type & | operator++ () |
Moves to the next record in the stream. More... | |
self_type & | operator<< (const_reference record) |
Output stream operator, writes out record . More... | |
Protected Attributes | |
bid_iterator_type | current_bid |
block_type * | current_blk |
int_type | current_elem |
buffered_writer< block_type > | writer |
Additional Inherited Members | |
Private Member Functions inherited from stxxl::noncopyable | |
noncopyable () | |
typedef BidIteratorType stxxl::buf_ostream< BlockType, BidIteratorType >::bid_iterator_type |
Definition at line 33 of file buf_ostream.h.
typedef BlockType stxxl::buf_ostream< BlockType, BidIteratorType >::block_type |
Definition at line 32 of file buf_ostream.h.
typedef block_type::const_reference stxxl::buf_ostream< BlockType, BidIteratorType >::const_reference |
Definition at line 42 of file buf_ostream.h.
typedef block_type::reference stxxl::buf_ostream< BlockType, BidIteratorType >::reference |
Definition at line 43 of file buf_ostream.h.
typedef buf_ostream<block_type, bid_iterator_type> stxxl::buf_ostream< BlockType, BidIteratorType >::self_type |
Definition at line 44 of file buf_ostream.h.
|
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 49 of file buf_ostream.h.
|
inline |
Deallocates internal objects.
Definition at line 117 of file buf_ostream.h.
|
inline |
Returns reference to the current record.
Definition at line 72 of file buf_ostream.h.
|
inline |
Fill current block with padding and flush.
Definition at line 98 of file buf_ostream.h.
References operator<<().
|
inline |
Force flush of current block, for finishing writing within a block.
Definition at line 109 of file buf_ostream.h.
Referenced by stxxl::for_each_m(), stxxl::stream::materialize(), and stxxl::random_shuffle().
|
inline |
Returns reference to the current record.
Definition at line 79 of file buf_ostream.h.
|
inline |
Moves to the next record in the stream.
Definition at line 86 of file buf_ostream.h.
References UNLIKELY.
|
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 59 of file buf_ostream.h.
References UNLIKELY.
|
protected |
Definition at line 37 of file buf_ostream.h.
|
protected |
Definition at line 39 of file buf_ostream.h.
|
protected |
Definition at line 38 of file buf_ostream.h.
|
protected |
Definition at line 36 of file buf_ostream.h.