Public Member Functions | Private Member Functions | Private Attributes | List of all members
serializer Class Reference

#include <utils.h>

Public Member Functions

template<class T >
void operator() (const T &val)
 
 serializer ()
 
std::string str () const
 

Private Member Functions

void serialize_impl (const move_only_test &val)
 
template<typename T , typename U >
void serialize_impl (const std::pair< T, U > &val)
 
void serialize_impl (const std::string &val)
 
template<class T , typename std::enable_if< std::is_arithmetic< T >::value >::type * = nullptr>
void serialize_impl (const T &val)
 

Private Attributes

std::stringstream m_ostream
 

Detailed Description

serializer helper to test serialize(...) and deserialize(...) functions

Definition at line 349 of file robin-map/tests/utils.h.

Constructor & Destructor Documentation

◆ serializer()

serializer::serializer ( )
inline

Definition at line 351 of file robin-map/tests/utils.h.

Member Function Documentation

◆ operator()()

template<class T >
void serializer::operator() ( const T &  val)
inline

Definition at line 354 of file robin-map/tests/utils.h.

◆ serialize_impl() [1/4]

void serializer::serialize_impl ( const move_only_test val)
inlineprivate

Definition at line 373 of file robin-map/tests/utils.h.

◆ serialize_impl() [2/4]

template<typename T , typename U >
void serializer::serialize_impl ( const std::pair< T, U > &  val)
inlineprivate

Definition at line 362 of file robin-map/tests/utils.h.

◆ serialize_impl() [3/4]

void serializer::serialize_impl ( const std::string &  val)
inlineprivate

Definition at line 367 of file robin-map/tests/utils.h.

◆ serialize_impl() [4/4]

template<class T , typename std::enable_if< std::is_arithmetic< T >::value >::type * = nullptr>
void serializer::serialize_impl ( const T &  val)
inlineprivate

Definition at line 379 of file robin-map/tests/utils.h.

◆ str()

std::string serializer::str ( ) const
inline

Definition at line 358 of file robin-map/tests/utils.h.

Member Data Documentation

◆ m_ostream

std::stringstream serializer::m_ostream
private

Definition at line 384 of file robin-map/tests/utils.h.


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


mp2p_icp
Author(s): Jose-Luis Blanco-Claraco
autogenerated on Wed Jun 26 2024 02:47:10