Stxxl
1.3.2
|
Buffered input stream. More...
#include <buf_istream.h>
Public Types | |
typedef block_type::reference | reference |
typedef buf_istream < block_type, bid_iterator_type > | _Self |
Public Member Functions | |
buf_istream (bid_iterator_type _begin, bid_iterator_type _end, int_type nbuffers) | |
Constructs input stream object. More... | |
_Self & | operator>> (reference record) |
Input stream operator, reads in record . More... | |
reference | current () |
Returns reference to the current record in the stream. More... | |
reference | operator* () |
Returns reference to the current record in the stream. More... | |
_Self & | operator++ () |
Moves to the next record in the stream. More... | |
virtual | ~buf_istream () |
Frees used internal objects. More... | |
Protected Types | |
typedef block_prefetcher < block_type, bid_iterator_type > | prefetcher_type |
Protected Attributes | |
prefetcher_type * | prefetcher |
bid_iterator_type | begin_bid |
bid_iterator_type | end_bid |
int_type | current_elem |
block_type * | current_blk |
int_type * | prefetch_seq |
bool | not_finished |
Buffered input stream.
Reads data records from the stream of blocks.
|
inline |
Constructs input stream object.
_begin | bid_iterator pointing to the first block of the stream |
_end | bid_iterator pointing to the ( last + 1 ) block of the stream |
nbuffers | number of buffers for internal use |
References block_prefetcher< block_type, bid_iterator_type >::pull_block().
|
inlinevirtual |
Frees used internal objects.
|
inline |
Returns reference to the current record in the stream.
|
inline |
Returns reference to the current record in the stream.
|
inline |
Moves to the next record in the stream.
References block_prefetcher< block_type, bid_iterator_type >::block_consumed().
|
inline |
Input stream operator, reads in record
.
record | reference to the block record type, contains value of the next record in the stream after the call of the operator |
References block_prefetcher< block_type, bid_iterator_type >::block_consumed().