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


Public Member Functions | |
| ocountstream () | |
| Default construct. More... | |
| countbuf * | rdbuf () |
| This hides both signatures of std::basic_ios::rdbuf() More... | |
| std::streamsize | count () const noexcept |
| The number of bytes counted. More... | |
| void | reset (std::streamsize n=0) noexcept |
| Reset the count. More... | |
| void | debug_info (Ostream &os) const |
| Some information about the output buffer position/capacity. 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 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.
Referenced by OCountStream::count(), and OCountStream::size().

|
inlinenoexcept |
Reset the count.
Definition at line 186 of file OCountStream.H.
Referenced by OCountStream::OCountStream(), OCountStream::reset(), and OCountStream::rewind().


|
inline |
Some information about the output buffer position/capacity.
Definition at line 195 of file OCountStream.H.
References os().
