DataStream  1.8.8
DataStream : framework to save/load/serialize/deserialize data
DataStream< size_t, DataStreamMode::WRITE, std::list< T > > 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::list< T > &data)
 Get the size of a class std::list T. More...
 

Detailed Description

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

How to get size of a class.

Definition at line 31 of file data_stream_size.h.

Member Function Documentation

◆ data_stream()

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

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

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

Definition at line 37 of file data_stream_size.h.

37  {
38  ds += sizeof(size_t);
39  for(typename std::list<T>::iterator it(data.begin()); it != data.end(); ++it){
41  }
42  return true;
43  }

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:
DataStream::data_stream
static bool data_stream(Stream &ds, T &data)
Definition: data_stream_include.h:28