DataStream  1.8.8
DataStream : framework to save/load/serialize/deserialize data
DataStream< char *, DataStreamMode::WRITE, std::list< T > > Struct Template Reference

How to write a class in a stream. More...

#include <data_stream_write_message.h>

Static Public Member Functions

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

Detailed Description

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

How to write a class in a stream.

Definition at line 35 of file data_stream_write_message.h.

Member Function Documentation

◆ data_stream()

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

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

Parameters
[out]ds: stream to write the class std::list T
data: data to be saved
Returns
true on success, false otherwise

Definition at line 41 of file data_stream_write_message.h.

41  {
42  //Save the size of the data
43  size_t nbElement(data.size());
45  if(nbElement == 0lu || !b){return b;} //If there is no element, quit now
46  for(typename std::list<T>::iterator it(data.begin()); it != data.end(); ++it){
48  }
49  return b;
50  }

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