MyraMath
Public Member Functions | List of all members
myra::CountingStream Class Reference

An OutputStream that just counts up the size of everything you write() to it. More...

#include <iosize.h>

Inheritance diagram for myra::CountingStream:
[legend]
Collaboration diagram for myra::CountingStream:
[legend]

Public Member Functions

 CountingStream ()
 Constructor, initializes size() = 0.
 
virtual void write_binary (const char *p, size_t n)
 Accumulates n, but doesn't actually serialize anything.
 
size_t size ()
 Returns total size.
 
- Public Member Functions inherited from myra::OutputStream
template<class T >
void write (const T &t)
 

Detailed Description

An OutputStream that just counts up the size of everything you write() to it.


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