7 #ifndef __DATA_STREAM_SIZE_H__
8 #define __DATA_STREAM_SIZE_H__
22 for(
typename std::vector<T>::iterator it(data.begin()); it != data.end(); ++it){
39 for(
typename std::list<T>::iterator it(data.begin()); it != data.end(); ++it){
47 template<
typename T,
typename U>
56 for(
typename std::map<T, U>::iterator it(data.begin()); it != data.end(); ++it){
65 template<
typename T,
typename U>
83 static bool data_stream(
size_t & ds,
bool * data,
size_t nbElement);
89 static bool data_stream(
size_t & ds, std::string & data);
static bool data_stream(size_t &ds, std::list< T > &data)
Get the size of a class std::list T.
static bool data_stream(size_t &ds, std::map< T, U > &data)
Get the size of a class std::list T.
static bool data_stream(size_t &ds, std::pair< T, U > &data)
Get the size of a class std::list T.
static bool data_stream(size_t &ds, std::vector< T > &data)
Get the size of a class std::vector T.
Generic DataStream class.
static bool data_stream(Stream &ds, T &data)
Dummy function to catch if a type is not specialised.