OSVR-Core
Public Member Functions | List of all members
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 <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())
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Handles pointers. More...
 
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).

Member Function Documentation

§ operator()() [1/3]

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.

§ operator()() [2/3]

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.

§ operator()() [3/3]

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.


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