ocountstream Class Reference

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

Inheritance diagram for ocountstream:
[legend]
Collaboration diagram for ocountstream:
[legend]

Public Member Functions

 ocountstream ()
 Construct null. 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)
 Construct null, 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 ( )
inline

Construct null.

Definition at line 119 of file OCountStream.H.

Member Function Documentation

◆ rewind()

void rewind ( )
inline

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
inline
Returns
The number of bytes counted

Definition at line 90 of file OCountStream.H.


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