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 216 of file OCountStream.H.
|
protected |
Definition at line 222 of file OCountStream.H.
|
inlineprotected |
Default construct, or with precount size.
Definition at line 240 of file OCountStream.H.
|
inlineprotected |
Definition at line 249 of file OCountStream.H.
References OCountStreamAllocator::buf_, os(), and countstreambuf::printBufInfo().
|
inline |
The number of bytes counted.
Definition at line 261 of file OCountStream.H.
References OCountStreamAllocator::buf_, and countstreambuf::tellp().
|
inline |
Rewind the stream, reset the count.
Definition at line 269 of file OCountStream.H.
References OCountStreamAllocator::buf_, and OCountStreamAllocator::stream_.
Referenced by OCountStream::rewind().
|
protected |
The stream buffer.
Definition at line 227 of file OCountStream.H.
Referenced by OCountStreamAllocator::printBufInfo(), OCountStreamAllocator::rewind(), and OCountStreamAllocator::size().
|
protected |
The output stream.
Definition at line 232 of file OCountStream.H.
Referenced by OCountStreamAllocator::rewind().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.