|
STXXL
1.4.1
|
Buffered input stream.
Reads data records from the stream of blocks.
Definition at line 34 of file buf_istream.h.
Inheritance diagram for stxxl::buf_istream< BlockType, BidIteratorType >:
Collaboration diagram for stxxl::buf_istream< BlockType, BidIteratorType >:Public Types | |
| typedef BidIteratorType | bid_iterator_type |
| typedef BlockType | block_type |
| typedef block_type::reference | reference |
| typedef buf_istream < block_type, bid_iterator_type > | self_type |
Public Member Functions | |
| buf_istream (bid_iterator_type begin, bid_iterator_type end, unsigned_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_type & | operator++ () |
| Moves to the next record in the stream. More... | |
| self_type & | 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 BidIteratorType stxxl::buf_istream< BlockType, BidIteratorType >::bid_iterator_type |
Definition at line 38 of file buf_istream.h.
| typedef BlockType stxxl::buf_istream< BlockType, BidIteratorType >::block_type |
Definition at line 37 of file buf_istream.h.
|
protected |
Definition at line 44 of file buf_istream.h.
| typedef block_type::reference stxxl::buf_istream< BlockType, BidIteratorType >::reference |
Definition at line 54 of file buf_istream.h.
| typedef buf_istream<block_type, bid_iterator_type> stxxl::buf_istream< BlockType, BidIteratorType >::self_type |
Definition at line 55 of file buf_istream.h.
|
inlineprivate |
Definition at line 41 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 61 of file buf_istream.h.
References stxxl::compute_prefetch_schedule(), and stxxl::STXXL_MAX().
|
inline |
Frees used internal objects.
Definition at line 146 of file buf_istream.h.
|
inline |
Returns reference to the current record in the stream.
Definition at line 112 of file buf_istream.h.
|
inline |
Returns reference to the current record in the stream.
Definition at line 118 of file buf_istream.h.
|
inline |
Moves to the next record in the stream.
Definition at line 125 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 90 of file buf_istream.h.
References UNLIKELY.
|
protected |
Definition at line 47 of file buf_istream.h.
|
protected |
Definition at line 46 of file buf_istream.h.
|
protected |
Definition at line 50 of file buf_istream.h.
|
protected |
Definition at line 48 of file buf_istream.h.
|
protected |
Definition at line 45 of file buf_istream.h.