Trivial output stream for calculating byte counts. More...
#include <OCountStream.H>


Public Member Functions | |
| ocountstream () | |
| Default construct. | |
| countbuf * | rdbuf () |
| This hides both signatures of std::basic_ios::rdbuf(). | |
| std::streamsize | count () const noexcept |
| The number of bytes counted. | |
| void | reset (std::streamsize n=0) noexcept |
| Reset the count. | |
| void | debug_info (Ostream &os) const |
| Some information about the output buffer position/capacity. | |
| void | print (Ostream &os) const |
| Information about stream. | |
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 47 of file OCountStream.H.
|
inline |
Default construct.
Definition at line 168 of file OCountStream.H.
|
inline |
This hides both signatures of std::basic_ios::rdbuf().
Definition at line 176 of file OCountStream.H.
|
inlinenoexcept |
The number of bytes counted.
Definition at line 181 of file OCountStream.H.
References Foam::noexcept.
|
inlinenoexcept |
|
inline |
Some information about the output buffer position/capacity.
Definition at line 195 of file OCountStream.H.
References os().
Referenced by print().


|
inline |
Information about stream.
Definition at line 203 of file OCountStream.H.
References debug_info(), and os().
