VTK  9.1.0
Classes | Functions
vtkMultiProcessStreamSerialization.h File Reference

Utility to serialize STL containers to vtkMultiProcessStream. More...

#include "vtkMultiProcessStream.h"
#include <array>
#include <map>
#include <set>
#include <utility>
#include <vector>
Include dependency graph for vtkMultiProcessStreamSerialization.h:

Go to the source code of this file.

Classes

struct  Serialization< T >
 
struct  Serialization< std::set< ElementType > >
 
struct  Serialization< std::array< ElementType, N > >
 
struct  Serialization< std::pair< T1, T2 > >
 
struct  Serialization< std::map< T1, T2 > >
 
struct  Serialization< std::vector< ElementType > >
 

Functions

template<typename T >
vtkMultiProcessStreamoperator<< (vtkMultiProcessStream &stream, const T &value)
 
template<typename T >
vtkMultiProcessStreamoperator>> (vtkMultiProcessStream &stream, T &value)
 

Detailed Description

Utility to serialize STL containers to vtkMultiProcessStream.

This header provides helpers to make it easier to serialize STL containers to vtkMultiProcessStream.

Typical usage is as follows:

std::set<std::string> set_of_strings;
...
vtkMultiProcessStream stream;
stream << set_of_strings; // save
.... do communication ...
vtkMultiProcessStream result;
stream >> result; // load
...

Definition in file vtkMultiProcessStreamSerialization.h.

Function Documentation

◆ operator<<()

template<typename T >
vtkMultiProcessStream & operator<< ( vtkMultiProcessStream stream,
const T &  value 
)
inline

Definition at line 170 of file vtkMultiProcessStreamSerialization.h.

◆ operator>>()

template<typename T >
vtkMultiProcessStream & operator>> ( vtkMultiProcessStream stream,
T &  value 
)
inline

Definition at line 177 of file vtkMultiProcessStreamSerialization.h.