OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 <osvr/Common/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).

Definition at line 48 of file Serialization.h.

Member Function Documentation

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.

Definition at line 60 of file Serialization.h.

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.

Definition at line 73 of file Serialization.h.


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