PhoenixLecture  2.0.0
Set of tools to make lectures
DataStream< size_t, DataStreamMode::WRITE, std::map< T, U > > Struct Template Reference

How to get size of a class. More...

#include <data_stream_size.h>

Static Public Member Functions

static bool data_stream (size_t &ds, std::map< T, U > &data)
 Get the size of a class std::list T. More...
 

Detailed Description

template<typename T, typename U>
struct DataStream< size_t, DataStreamMode::WRITE, std::map< T, U > >

How to get size of a class.

Definition at line 48 of file data_stream_size.h.

Member Function Documentation

◆ data_stream()

template<typename T , typename U >
static bool DataStream< size_t, DataStreamMode::WRITE, std::map< T, U > >::data_stream ( size_t &  ds,
std::map< T, U > &  data 
)
inlinestatic

Get the size of a class std::list T.

Parameters
[out]ds: size of the class std::map T U
data: data to be used
Returns
true on success, false otherwise

Definition at line 54 of file data_stream_size.h.

54  {
55  ds += sizeof(size_t);
56  for(typename std::map<T, U>::iterator it(data.begin()); it != data.end(); ++it){
59  }
60  return true;
61  }
static bool data_stream(Stream &ds, T &data)
Dummy function to catch if a type is not specialised.

References DataStream< Stream, Mode, T >::data_stream().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: