OSVR-Core
Public Member Functions | List of all members
osvr::common::serialization::SerializeFunctor< BufferType > Class Template Reference

Functor class used by osvr::common::serialize to serialize a message (passed as the "process" argument to the class's processMessage method). More...

#include <Serialization.h>

Inheritance diagram for osvr::common::serialization::SerializeFunctor< BufferType >:

Public Member Functions

 SerializeFunctor (BufferType &buf)
 Constructor, taking the buffer.
 
template<typename T >
void operator() (T const &v)
 Main function call operator method. More...
 
template<typename Tag , typename T >
void operator() (T const &v, Tag const &tag=Tag())
 Main function call operator method, taking a "tag type" to specify non-default serialization-related behavior. More...
 
std::true_type isSerialize () const
 
std::false_type isDeserialize () const
 

Detailed Description

template<typename BufferType>
class osvr::common::serialization::SerializeFunctor< BufferType >

Functor class used by osvr::common::serialize to serialize a message (passed as the "process" argument to the class's processMessage method).

Member Function Documentation

§ operator()() [1/2]

template<typename BufferType>
template<typename T >
void osvr::common::serialization::SerializeFunctor< BufferType >::operator() ( T const &  v)
inline

Main function call operator method.

Thin wrapper around apply() to perform template argument deduction.

Parameters
vThe value to process - in this case, to add to the buffer.

§ operator()() [2/2]

template<typename BufferType>
template<typename Tag , typename T >
void osvr::common::serialization::SerializeFunctor< BufferType >::operator() ( T const &  v,
Tag const &  tag = Tag() 
)
inline

Main function call operator method, taking a "tag type" to specify non-default serialization-related behavior.

Thin wrapper around apply() to perform template argument deduction.

Parameters
vThe value to process - in this case, to add to the buffer.

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