DP3
Namespaces
BlobSTL.h File Reference
#include "BlobOStream.h"
#include "BlobIStream.h"
#include <map>
#include <list>
#include <set>
#include <queue>
#include <deque>
#include "BlobSTL.tcc"

Go to the source code of this file.

Namespaces

 dp3
 This file has generic helper routines for testing steps.
 
 dp3::blob
 

Functions

Write a map.

Blob handling for STL sequences

Define functions to write a map into a blob and to read it back. The map is preceeded by the header 'map<T,U>', where T and U are the type names as defined in TypeNames.h. Type names are only defined for the basic types. Other types are set to 'unknown'.

template<typename T , typename U >
BlobOStream & dp3::blob::operator<< (BlobOStream &, const std::map< T, U > &)
 
Read back a map.
template<typename T , typename U >
BlobIStream & dp3::blob::operator>> (BlobIStream &, std::map< T, U > &)
 
Write a sequence.

Define helper functions to write any STL sequence into a blob and to read it back. The sequence is preceeded by the header 'array<T>', where T is the type name of Seq::value_type as defined in TypeNames.h. Type names are only defined for the basic types. Other types are set to 'unknown'. All sequences are written in the same way (as 1-dim arrays). It means that they can be read back using any other sequence type.

template<typename Seq >
void dp3::blob::sequenceToBlob (BlobOStream &, const Seq &)
 
Read back a sequence.
template<typename Seq >
void dp3::blob::sequenceFromBlob (BlobOStream &, Seq &)
 
template<typename T >
void dp3::blob::sequenceFromBlob (BlobOStream &, std::set< T > &)
 Specialize for a set. More...
 
Write a list.

Define helper functions to write an STL sequence into a blob and to read it back. The sequence is preceeded by the header 'array<T>', where T is the type name of T as defined in TypeNames.h. Type names are only defined for the basic types. Other types are set to 'unknown'. All sequences are written in the same way (as 1-dim arrays). It means that they can be read back in any other sequence type (including AIPS++ and Blitz arrays).

Note
STL vectors are handled by BlobArray.h.
template<typename T >
BlobOStream & dp3::blob::operator<< (BlobOStream &bs, const std::list< T > &seq)
 
Read back a list.
template<typename T >
BlobIStream & dp3::blob::operator>> (BlobIStream &bs, std::list< T > &seq)
 
Write a set.
template<typename T >
BlobOStream & dp3::blob::operator<< (BlobOStream &bs, const std::set< T > &seq)
 
Read back a set.
template<typename T >
BlobIStream & dp3::blob::operator>> (BlobIStream &bs, std::set< T > &seq)
 
Write a queue.
template<typename T >
BlobOStream & dp3::blob::operator<< (BlobOStream &bs, const std::queue< T > &seq)
 
Read back a queue.
template<typename T >
BlobIStream & dp3::blob::operator>> (BlobIStream &bs, std::queue< T > &seq)
 
Write a deque.
template<typename T >
BlobOStream & dp3::blob::operator<< (BlobOStream &bs, const std::deque< T > &seq)
 
Read back a deque.
template<typename T >
BlobIStream & dp3::blob::operator>> (BlobIStream &bs, std::deque< T > &seq)