An stream/stream-buffer allocator for counting. More...
Public Member Functions | |
std::streamsize | size () const |
The number of bytes counted. More... | |
void | rewind () |
Rewind the stream, reset the count. More... | |
Protected Types | |
typedef std::ostream | stream_type |
Protected Member Functions | |
OCountStreamAllocator (std::streamsize precount=0) | |
Default construct, or with precount size. More... | |
void | printBufInfo (Ostream &os) const |
Protected Attributes | |
countstreambuf | buf_ |
The stream buffer. More... | |
stream_type | stream_ |
The output stream. More... | |
An stream/stream-buffer allocator for counting.
Definition at line 190 of file OCountStream.H.
|
protected |
Definition at line 196 of file OCountStream.H.
|
inlineprotected |
Default construct, or with precount size.
Definition at line 208 of file OCountStream.H.
|
inlineprotected |
Definition at line 217 of file OCountStream.H.
References OCountStreamAllocator::buf_, os(), and countstreambuf::printBufInfo().
|
inline |
The number of bytes counted.
Definition at line 227 of file OCountStream.H.
References OCountStreamAllocator::buf_, and countstreambuf::tellp().
|
inline |
Rewind the stream, reset the count.
Definition at line 233 of file OCountStream.H.
References OCountStreamAllocator::buf_, and OCountStreamAllocator::stream_.
Referenced by OCountStream::rewind().
|
protected |
The stream buffer.
Definition at line 199 of file OCountStream.H.
Referenced by OCountStreamAllocator::printBufInfo(), OCountStreamAllocator::rewind(), and OCountStreamAllocator::size().
|
protected |
The output stream.
Definition at line 202 of file OCountStream.H.
Referenced by OCountStreamAllocator::rewind().