Cafu Engine
cf::Network::InStreamT Class Reference

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...
 
InStreamToperator>> (char &b)
 Reads a data item of the given type from the stream. More...
 
InStreamToperator>> (uint8_t &b)
 
InStreamToperator>> (unsigned short &w)
 
InStreamToperator>> (int32_t &i)
 
InStreamToperator>> (uint32_t &ui)
 
InStreamToperator>> (uint64_t &ui)
 
InStreamToperator>> (float &f)
 
InStreamToperator>> (double &d)
 
InStreamToperator>> (bool &b)
 
InStreamToperator>> (char *s)
 
InStreamToperator>> (std::string &s)
 
template<class T >
InStreamToperator>> (ArrayT< T > &A)
 

Detailed Description

This class is used for reading data from a StateT instance (deserialization).

TODO: Optimize handling of strings and bools.

Constructor & Destructor Documentation

cf::Network::InStreamT::InStreamT ( const StateT State)
inline

Creates a stream for reading data from the given state.

Member Function Documentation

InStreamT& cf::Network::InStreamT::operator>> ( char &  b)
inline

Reads a data item of the given type from the stream.

void cf::Network::InStreamT::Restart ( )
inline

Re-initializes reading from the stream.


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