ocountstream Class Reference

Trivial output stream for calculating byte counts. More...

Inheritance diagram for ocountstream:
Collaboration diagram for ocountstream:

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...

Detailed Description

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.

Constructor & Destructor Documentation

◆ ocountstream()

ocountstream ( )

Default construct.

Definition at line 119 of file OCountStream.H.

Member Function Documentation

◆ rewind()

void rewind ( )

Rewind the stream, reset the count.

Definition at line 130 of file OCountStream.H.

References clear().

Here is the call graph for this function:

◆ size()

std::streamsize size
The number of bytes counted

Definition at line 90 of file OCountStream.H.

The documentation for this class was generated from the following file: