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 146 of file OCountStream.H.
|
protected |
Definition at line 152 of file OCountStream.H.
|
inlineprotected |
Default construct, or with precount size.
Definition at line 164 of file OCountStream.H.
|
inlineprotected |
Definition at line 173 of file OCountStream.H.
References OCountStreamAllocator::buf_, and countstreambuf::printBufInfo().
|
inline |
The number of bytes counted.
Definition at line 183 of file OCountStream.H.
References OCountStreamAllocator::buf_, and countstreambuf::size().
|
inline |
Rewind the stream, reset the count.
Definition at line 189 of file OCountStream.H.
References OCountStreamAllocator::buf_, and OCountStreamAllocator::stream_.
Referenced by OCountStream::rewind().
|
protected |
The stream buffer.
Definition at line 155 of file OCountStream.H.
Referenced by OCountStreamAllocator::printBufInfo(), OCountStreamAllocator::rewind(), and OCountStreamAllocator::size().
|
protected |
The output stream.
Definition at line 158 of file OCountStream.H.
Referenced by OCountStreamAllocator::rewind().