Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
omni::serialization::traits::Write< std::map< KEY, T, COMPARE, ALLOCATOR >, false > Struct Template Reference

Serialize elements in map. More...

#include <container.h>

Public Member Functions

template<typename STREAM , typename OBJ >
STREAM & operator() (STREAM &_stream, OBJ const &_obj)
 

Detailed Description

template<typename KEY, typename T, typename COMPARE, typename ALLOCATOR>
struct omni::serialization::traits::Write< std::map< KEY, T, COMPARE, ALLOCATOR >, false >

Serialize elements in map.

Member Function Documentation

template<typename KEY , typename T , typename COMPARE , typename ALLOCATOR >
template<typename STREAM , typename OBJ >
STREAM& omni::serialization::traits::Write< std::map< KEY, T, COMPARE, ALLOCATOR >, false >::operator() ( STREAM &  _stream,
OBJ const &  _obj 
)
inline
149  {
150  serialize(_stream, uint32_t(_obj.size()));
151 
152  for (auto& _keyValue : _obj) {
153  serialize(_keyValue.first, _obj);
154  serialize(_keyValue.second, _obj);
155  }
156  return _stream;
157  }
STREAM & serialize(STREAM &_stream, T const &_t)
Serialize object to stream.
Definition: traits.h:140

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