OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::common::serialization::DeserializeFunctor< BufferReaderType > Class Template Reference

Functor class used by osvr::common::deserialize to deserialize 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::DeserializeFunctor< BufferReaderType >:

Public Member Functions

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

Detailed Description

template<typename BufferReaderType>
class osvr::common::serialization::DeserializeFunctor< BufferReaderType >

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

Definition at line 96 of file Serialization.h.

Member Function Documentation

template<typename BufferReaderType>
template<typename T >
void osvr::common::serialization::DeserializeFunctor< BufferReaderType >::operator() ( T &  v)
inline

Main function call operator method.

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

Definition at line 105 of file Serialization.h.

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

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

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

Definition at line 115 of file Serialization.h.

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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Handles pointers.

Definition at line 123 of file Serialization.h.


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