Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

namespace  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
 
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
 
template<class TIStream >
void ug::Deserialize (TIStream &buf, std::string &str)
 deserializes data from a binary stream into a string
 
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>
 
template<class T , class TIStream >
void ug::Deserialize (TIStream &buf, std::vector< T > &vec)
 deserializes data from a binary stream into a vector
 
template<class TIStream >
void ug::Deserialize (TIStream &buf, Variant &v)
 deserializes data from a binary stream into a variant
 
template<typename T , class TIStream >
ug::Deserialize (TIStream &stream)
 method returning value directly
 
template<class TStream , class T >
void ug::Deserialize (TStream &buf, const T &valOut)
 Catch errors with wrong const identifiers in valOut.
 
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
 
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
 
template<class TOStream >
void ug::Serialize (TOStream &buf, const std::string &str)
 Writes a string to a binary stream.
 
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
 
template<class TOStream >
void ug::Serialize (TOStream &buf, const Variant &v)
 serializes a variant
 
template<class TStream , class T >
void ug::Serialize (TStream &buf, const T &val)