A streambuf class for determining byte counts. More...
Public Member Functions | |
countstreambuf (std::streamsize precount=0) | |
Default construct, or with precount size. More... | |
std::streamsize | tellp () const |
void | printBufInfo (Ostream &os) const |
Some information about the number of bytes counted. More... | |
Protected Member Functions | |
virtual std::streampos | seekoff (std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) |
Set position pointer to relative position. More... | |
virtual std::streampos | seekpos (std::streampos pos, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) |
Set position pointer to absolute position. More... | |
virtual int | overflow (int c=EOF) |
Handle output counting via overflow. More... | |
virtual std::streamsize | xsputn (const char *s, std::streamsize n) |
Put sequence of characters. More... | |
A streambuf class for determining byte counts.
Definition at line 45 of file OCountStream.H.
|
inlineexplicit |
Default construct, or with precount size.
Definition at line 131 of file OCountStream.H.
|
inlineprotectedvirtual |
Set position pointer to relative position.
Definition at line 60 of file OCountStream.H.
References stdFoam::end().
Referenced by countstreambuf::seekpos().
|
inlineprotectedvirtual |
Set position pointer to absolute position.
For the counter, adjust the count accordingly.
Definition at line 94 of file OCountStream.H.
References Foam::pos(), and countstreambuf::seekoff().
|
inlineprotectedvirtual |
Handle output counting via overflow.
Definition at line 106 of file OCountStream.H.
References Foam::constant::universal::c.
|
inlineprotectedvirtual |
|
inline |
Definition at line 139 of file OCountStream.H.
Referenced by ocountstream::size(), and OCountStreamAllocator::size().
|
inline |
Some information about the number of bytes counted.
Definition at line 147 of file OCountStream.H.
References os().
Referenced by OCountStreamAllocator::printBufInfo().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.