ug4
serialization.h File Reference
#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <string>
#include <cassert>
#include "log.h"
#include "util/variant.h"
#include "error.h"

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<class Key , class T , class TIStream >
void ug::Deserialize (TIStream &buf, std::map< Key, T > &m)
 deserializes data from a binary stream into a map More...
 
template<class T1 , class T2 , class TIStream >
void ug::Deserialize (TIStream &buf, std::pair< T1, T2 > &v)
 
template<class T , class TIStream >
void ug::Deserialize (TIStream &buf, std::set< T > &myset)
 deserializes data from a binary stream into a set More...
 
template<class TIStream >
void ug::Deserialize (TIStream &buf, std::string &str)
 deserializes data from a binary stream into a string More...
 
template<class TIStream >
void ug::Deserialize (TIStream &buf, std::vector< bool > &vec)
 
template<class TIStream >
void ug::Deserialize (TIStream &buf, std::vector< bool >::reference boolRef)
 deserializes data from a binary stream into a vector<bool> More...
 
template<class T , class TIStream >
void ug::Deserialize (TIStream &buf, std::vector< T > &vec)
 deserializes data from a binary stream into a vector More...
 
template<class TIStream >
void ug::Deserialize (TIStream &buf, Variant &v)
 deserializes data from a binary stream into a variant More...
 
template<typename T , class TIStream >
ug::Deserialize (TIStream &stream)
 method returning value directly More...
 
template<class TStream , class T >
void ug::Deserialize (TStream &buf, const T &valOut)
 Catch errors with wrong const identifiers in valOut. More...
 
template<class TStream , class T >
void ug::Deserialize (TStream &buf, T &valOut)
 
template<class TIStream >
void ug::Serialize (TIStream &buf, const std::vector< bool > &vec)
 
template<class Key , class T , class TOStream >
void ug::Serialize (TOStream &buf, const std::map< Key, T > &m)
 writes data from a map to a binary stream More...
 
template<class T1 , class T2 , class TOStream >
void ug::Serialize (TOStream &buf, const std::pair< T1, T2 > &v)
 
template<class T , class TOStream >
void ug::Serialize (TOStream &buf, const std::set< T > &m)
 writes data from a set to a binary stream More...
 
template<class TOStream >
void ug::Serialize (TOStream &buf, const std::string &str)
 Writes a string to a binary stream. More...
 
template<class TOStream >
void ug::Serialize (TOStream &buf, const std::vector< bool >::reference &boolRef)
 
template<class T , class TOStream >
void ug::Serialize (TOStream &buf, const std::vector< T > &vec)
 writes data in a vector to a binary stream More...
 
template<class TOStream >
void ug::Serialize (TOStream &buf, const Variant &v)
 serializes a variant More...
 
template<class TStream , class T >
void ug::Serialize (TStream &buf, const T &val)