Trivial output stream for calculating byte counts. More...
Public Member Functions | |
ocountstream () | |
Default construct. More... | |
void | rewind () |
Rewind the stream, reset the count. More... | |
std::streamsize | size () const |
Additional Inherited Members | |
Protected Member Functions inherited from countstreambuf | |
virtual int | overflow (int c=EOF) |
Handle output counting via overflow. More... | |
virtual std::streampos | seekpos (std::streampos, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) |
Set position pointer to absolute position. More... | |
countstreambuf (std::streamsize precount=0) | |
Default construct, or with precount size. More... | |
std::streamsize | size () const |
void | printBufInfo (Ostream &os) const |
Some information about the number of bytes counted. More... | |
Trivial output stream for calculating byte counts.
Since all output values are discarded, it can be used as a /dev/null output buffer as well.
Definition at line 110 of file OCountStream.H.
|
inline |
Default construct.
Definition at line 119 of file OCountStream.H.
|
inline |
Rewind the stream, reset the count.
Definition at line 130 of file OCountStream.H.
References clear().
|
inline |
Definition at line 90 of file OCountStream.H.