Buffered output stream.
More...
#include <buf_ostream.h>
List of all members.
Public Member Functions |
| buf_ostream (bid_iterator_type first_bid, int_type nbuffers) |
| Constructs output stream object.
|
_Self & | operator<< (const_reference record) |
| Output stream operator, writes out record .
|
reference | current () |
| Returns reference to the current record.
|
reference | operator* () |
| Returns reference to the current record.
|
_Self & | operator++ () |
| Moves to the next record in the stream.
|
virtual | ~buf_ostream () |
| Deallocates internal objects.
|
Detailed Description
template<typename BlkTp_, typename BIDIteratorTp_>
class buf_ostream< BlkTp_, BIDIteratorTp_ >
Buffered output stream.
Writes data records to the stream of blocks.
Constructor & Destructor Documentation
template<typename BlkTp_, typename BIDIteratorTp_>
Constructs output stream object.
- Parameters:
-
first_bid | bid_iterator pointing to the first block of the stream |
nbuffers | number of buffers for internal use |
template<typename BlkTp_, typename BIDIteratorTp_>
Deallocates internal objects.
Member Function Documentation
template<typename BlkTp_, typename BIDIteratorTp_>
reference buf_ostream< BlkTp_, BIDIteratorTp_ >::current |
( |
| ) |
|
|
inline |
Returns reference to the current record.
- Returns:
- reference to the current record
template<typename BlkTp_, typename BIDIteratorTp_>
reference buf_ostream< BlkTp_, BIDIteratorTp_ >::operator* |
( |
| ) |
|
|
inline |
Returns reference to the current record.
- Returns:
- reference to the current record
template<typename BlkTp_, typename BIDIteratorTp_>
Moves to the next record in the stream.
- Returns:
- reference to itself after the advance
template<typename BlkTp_, typename BIDIteratorTp_>
_Self& buf_ostream< BlkTp_, BIDIteratorTp_ >::operator<< |
( |
const_reference |
record | ) |
|
|
inline |
Output stream operator, writes out record
.
- Parameters:
-
record | const reference to block record type, containing a value of record to write to the stream |
- Returns:
- reference to itself (stream object)
The documentation for this class was generated from the following file: