Gazebo Gazebo

API Reference

3.15.1
VectorSerializer< T > Class Template Reference

#include <Serialization.hh>

Static Public Member Functions

static std::istreamDeserialize (std::istream &_in, std::vector< T > &_data)
 Deserialization for std::vector<T> with serializable T. More...
 
static std::ostreamSerialize (std::ostream &_out, const std::vector< T > &_data)
 Serialization for std::vector<T> with serializable T. More...
 

Member Function Documentation

◆ Deserialize()

static std::istream& Deserialize ( std::istream _in,
std::vector< T > &  _data 
)
inlinestatic

Deserialization for std::vector<T> with serializable T.

Parameters
[in]_inInput stream.
[out]_dataThe data to populate.
Returns
The stream.

References vector< T >::resize().

◆ Serialize()

static std::ostream& Serialize ( std::ostream _out,
const std::vector< T > &  _data 
)
inlinestatic

Serialization for std::vector<T> with serializable T.

Parameters
[in]_outOutput stream.
[in]_dataThe data to stream.
Returns
The stream.

References vector< T >::size().


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