Gaudi Framework, version v23r0

Home   Generated: Mon Jan 30 2012
Namespaces | Functions

SerializeSTL.h File Reference

Provide serialization function (output only) for some common STL classes (vectors, lists, pairs, maps) plus GaudiUtils::Map and GaudiUtils::HashMap. More...

#include <ostream>
#include <vector>
#include <list>
#include <map>
#include <utility>
#include "GaudiKernel/Map.h"
#include "GaudiKernel/HashMap.h"
Include dependency graph for SerializeSTL.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  GaudiUtils

Functions

template<class T , class ALLOC >
std::ostreamGaudiUtils::operator<< (std::ostream &s, const std::vector< T, ALLOC > &v)
 Serialize an std::vector in a python like format. E.g. "[1, 2, 3]".
template<class T , class ALLOC >
std::ostreamGaudiUtils::operator<< (std::ostream &s, const std::list< T, ALLOC > &l)
 Serialize an std::list in a python like format. E.g. "[1, 2, 3]".
template<class T1 , class T2 >
std::ostreamGaudiUtils::operator<< (std::ostream &s, const std::pair< T1, T2 > &p)
 Serialize an std::list in a python like format. E.g. "(1, 2)".
template<class T1 , class T2 , class COMP , class ALLOC >
std::ostreamGaudiUtils::operator<< (std::ostream &s, const std::map< T1, T2, COMP, ALLOC > &m)
 Serialize an std::map in a python like format. E.g. "{a: 1, b: 2}".
template<class K , class T , class M >
std::ostreamGaudiUtils::operator<< (std::ostream &s, const GaudiUtils::Map< K, T, M > &m)
 Serialize a GaudiUtils::Map in a python like format. E.g. "{a: 1, b: 2}".
template<class K , class T , class H , class M >
std::ostreamGaudiUtils::operator<< (std::ostream &s, const GaudiUtils::HashMap< K, T, H, M > &m)
 Serialize a GaudiUtils::HashMap in a python like format.

Detailed Description

Provide serialization function (output only) for some common STL classes (vectors, lists, pairs, maps) plus GaudiUtils::Map and GaudiUtils::HashMap.

To use the serializer provided by this file, one should add "using namespace GaudiUtils" (possibly inside the function calling "<<").

Author:
Marco Clemencic (adapted from the code found in LHCbKernel, original author unknown)

Definition in file SerializeSTL.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Jan 30 2012 13:53:07 for Gaudi Framework, version v23r0 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004