#include <TCL_obj_base.h>
Public Member Functions | |
BinStream (pack_t &packer) | |
template<class T > | |
enable_if< Not< is_container< T > >, BinStream & >::T | operator<< (const T &o) |
template<class T > | |
enable_if< Not< is_container< T > >, BinStream & >::T | operator>> (T &o) |
template<class T > | |
enable_if< is_container< T >, BinStream & >::T | operator<< (const T &o) |
template<class T > | |
enable_if< is_sequence< T >, BinStream & >::T | operator>> (T &o) |
template<class T > | |
enable_if< is_associative_container< T >, BinStream & >::T | operator>> (T &o) |
template<class T , class A > | |
BinStream & | operator<< (const std::vector< T, A > &o) |
specialisation for vector | |
template<class T , class A > | |
BinStream & | operator>> (std::vector< T, A > &o) |
Binary streamer class. This subverts the normal classdesc serialisation to just stream types directly to a pack_t type, for efficiency. Only useful for PODs.
Caveat: Do not use on classes with virtual functions!