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. | |
_Self & | operator>> (reference record) |
Input stream operator, reads in record . | |
reference | current () |
Returns reference to the current record in the stream. | |
reference | operator* () |
Returns reference to the current record in the stream. | |
_Self & | operator++ () |
Moves to the next record in the stream. | |
virtual | ~buf_istream () |
Frees used internal objects. | |
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.
buf_istream< BlkTp_, BIDIteratorTp_ >::buf_istream | ( | bid_iterator_type | _begin, | |
bid_iterator_type | _end, | |||
int_type | nbuffers | |||
) | [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().
virtual buf_istream< BlkTp_, BIDIteratorTp_ >::~buf_istream | ( | ) | [inline, virtual] |
Frees used internal objects.
reference buf_istream< BlkTp_, BIDIteratorTp_ >::current | ( | ) | [inline] |
Returns reference to the current record in the stream.
reference buf_istream< BlkTp_, BIDIteratorTp_ >::operator* | ( | ) | [inline] |
Returns reference to the current record in the stream.
_Self& buf_istream< BlkTp_, BIDIteratorTp_ >::operator++ | ( | ) | [inline] |
Moves to the next record in the stream.
References block_prefetcher< block_type, bid_iterator_type >::block_consumed().
_Self& buf_istream< BlkTp_, BIDIteratorTp_ >::operator>> | ( | reference | record | ) | [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().