STXXL
1.4.0
|
Buffered output stream.
Writes data records to the stream of blocks.
Definition at line 31 of file buf_ostream.h.
Public Types | |
typedef buf_ostream < block_type, bid_iterator_type > | _Self |
typedef BIDIteratorType | bid_iterator_type |
typedef BlockType | block_type |
typedef block_type::const_reference | const_reference |
typedef block_type::reference | reference |
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 & | fill (const_reference record) |
Fill current block with padding and flush. More... | |
_Self & | flush () |
Force flush of current block, for finishing writing within a block. More... | |
reference | operator* () |
Returns reference to the current record. More... | |
_Self & | operator++ () |
Moves to the next record in the stream. More... | |
_Self & | 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 buf_ostream<block_type, bid_iterator_type> stxxl::buf_ostream< BlockType, BIDIteratorType >::_Self |
Definition at line 46 of file buf_ostream.h.
typedef BIDIteratorType stxxl::buf_ostream< BlockType, BIDIteratorType >::bid_iterator_type |
Definition at line 35 of file buf_ostream.h.
typedef BlockType stxxl::buf_ostream< BlockType, BIDIteratorType >::block_type |
Definition at line 34 of file buf_ostream.h.
typedef block_type::const_reference stxxl::buf_ostream< BlockType, BIDIteratorType >::const_reference |
Definition at line 44 of file buf_ostream.h.
typedef block_type::reference stxxl::buf_ostream< BlockType, BIDIteratorType >::reference |
Definition at line 45 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 51 of file buf_ostream.h.
|
inline |
Deallocates internal objects.
Definition at line 119 of file buf_ostream.h.
|
inline |
Returns reference to the current record.
Definition at line 74 of file buf_ostream.h.
|
inline |
Fill current block with padding and flush.
Definition at line 100 of file buf_ostream.h.
References operator<<().
|
inline |
Force flush of current block, for finishing writing within a block.
Definition at line 111 of file buf_ostream.h.
Referenced by stxxl::for_each_m(), and stxxl::random_shuffle().
|
inline |
Returns reference to the current record.
Definition at line 81 of file buf_ostream.h.
|
inline |
Moves to the next record in the stream.
Definition at line 88 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 61 of file buf_ostream.h.
References UNLIKELY.
|
protected |
Definition at line 39 of file buf_ostream.h.
|
protected |
Definition at line 41 of file buf_ostream.h.
|
protected |
Definition at line 40 of file buf_ostream.h.
|
protected |
Definition at line 38 of file buf_ostream.h.