|
STXXL
1.4.0
|
Buffered input stream.
Reads data records from the stream of blocks.
Definition at line 37 of file buf_istream.h.
Inheritance diagram for stxxl::buf_istream< BlockType, BIDIteratorType >:
Collaboration diagram for stxxl::buf_istream< BlockType, BIDIteratorType >:Public Types | |
| typedef buf_istream < block_type, bid_iterator_type > | _Self |
| typedef BIDIteratorType | bid_iterator_type |
| typedef BlockType | block_type |
| typedef block_type::reference | reference |
Public Member Functions | |
| buf_istream (bid_iterator_type _begin, bid_iterator_type _end, int_type nbuffers) | |
| Constructs input stream object. More... | |
| ~buf_istream () | |
| Frees used internal objects. 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... | |
| _Self & | operator>> (reference record) |
Input stream operator, reads in record. More... | |
Protected Types | |
| typedef block_prefetcher < block_type, bid_iterator_type > | prefetcher_type |
Protected Attributes | |
| block_type * | current_blk |
| int_type | current_elem |
| bool | not_finished |
| int_type * | prefetch_seq |
| prefetcher_type * | prefetcher |
Private Member Functions | |
| buf_istream () | |
Private Member Functions inherited from stxxl::noncopyable | |
| noncopyable () | |
| typedef buf_istream<block_type, bid_iterator_type> stxxl::buf_istream< BlockType, BIDIteratorType >::_Self |
Definition at line 58 of file buf_istream.h.
| typedef BIDIteratorType stxxl::buf_istream< BlockType, BIDIteratorType >::bid_iterator_type |
Definition at line 41 of file buf_istream.h.
| typedef BlockType stxxl::buf_istream< BlockType, BIDIteratorType >::block_type |
Definition at line 40 of file buf_istream.h.
|
protected |
Definition at line 47 of file buf_istream.h.
| typedef block_type::reference stxxl::buf_istream< BlockType, BIDIteratorType >::reference |
Definition at line 57 of file buf_istream.h.
|
inlineprivate |
Definition at line 44 of file buf_istream.h.
|
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 |
Definition at line 64 of file buf_istream.h.
References stxxl::compute_prefetch_schedule(), and stxxl::STXXL_MAX().
|
inline |
Frees used internal objects.
Definition at line 150 of file buf_istream.h.
|
inline |
Returns reference to the current record in the stream.
Definition at line 116 of file buf_istream.h.
|
inline |
Returns reference to the current record in the stream.
Definition at line 122 of file buf_istream.h.
|
inline |
Moves to the next record in the stream.
Definition at line 129 of file buf_istream.h.
References UNLIKELY.
|
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 |
Definition at line 94 of file buf_istream.h.
References UNLIKELY.
|
protected |
Definition at line 50 of file buf_istream.h.
|
protected |
Definition at line 49 of file buf_istream.h.
|
protected |
Definition at line 53 of file buf_istream.h.
|
protected |
Definition at line 51 of file buf_istream.h.
|
protected |
Definition at line 48 of file buf_istream.h.