OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::common::serialization::ArithmeticSerializationTraits< T, Alignment > Struct Template Reference

Serialization traits for a given arithmetic type (that is, a number type that has a network byte order) with a specified alignment. More...

#include <osvr/Common/SerializationTraits.h>

Inheritance diagram for osvr::common::serialization::ArithmeticSerializationTraits< T, Alignment >:
osvr::common::serialization::BaseSerializationTraits< T >

Public Types

typedef
BaseSerializationTraits< T > 
Base
 
typedef T type
 
- Public Types inherited from osvr::common::serialization::BaseSerializationTraits< T >
typedef T type
 
typedef boost::call_traits
< type >::param_type 
param_type
 
typedef boost::call_traits
< type >::value_type 
value_type
 
typedef boost::call_traits
< type >::reference 
reference_type
 

Static Public Member Functions

template<typename BufferType , typename Tag >
static void serialize (BufferType &buf, typename Base::param_type val, Tag const &)
 Buffers an object of this type.
 
template<typename BufferReaderType , typename Tag >
static void deserialize (BufferReaderType &buf, typename Base::reference_type val, Tag const &)
 Reads an object of this type from a buffer.
 
template<typename Tag >
static size_t spaceRequired (size_t existingBytes, typename Base::param_type, Tag const &)
 Returns the number of bytes required for this type (and alignment padding if applicable) to be appended to a buffer of the supplied existing size.
 

Detailed Description

template<typename T, size_t Alignment>
struct osvr::common::serialization::ArithmeticSerializationTraits< T, Alignment >

Serialization traits for a given arithmetic type (that is, a number type that has a network byte order) with a specified alignment.

Definition at line 296 of file SerializationTraits.h.


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