This class is used for reading data from a StateT instance (deserialization). More...
#include "State.hpp"
Public Member Functions | |
InStreamT (const StateT &State) | |
Creates a stream for reading data from the given state. More... | |
void | Restart () |
Re-initializes reading from the stream. More... | |
InStreamT & | operator>> (char &b) |
Reads a data item of the given type from the stream. More... | |
InStreamT & | operator>> (uint8_t &b) |
InStreamT & | operator>> (unsigned short &w) |
InStreamT & | operator>> (int32_t &i) |
InStreamT & | operator>> (uint32_t &ui) |
InStreamT & | operator>> (uint64_t &ui) |
InStreamT & | operator>> (float &f) |
InStreamT & | operator>> (double &d) |
InStreamT & | operator>> (bool &b) |
InStreamT & | operator>> (char *s) |
InStreamT & | operator>> (std::string &s) |
template<class T > | |
InStreamT & | operator>> (ArrayT< T > &A) |
This class is used for reading data from a StateT instance (deserialization).
TODO: Optimize handling of strings and bools.
|
inline |
Creates a stream for reading data from the given state.
|
inline |
Reads a data item of the given type from the stream.
|
inline |
Re-initializes reading from the stream.