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>
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 |
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.
|
inline |
Main function call operator method.
Thin wrapper around apply() to perform template argument deduction.
v | The value to process - in this case, to add to the buffer. |
Definition at line 60 of file Serialization.h.
|
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.
v | The value to process - in this case, to add to the buffer. |
Definition at line 73 of file Serialization.h.