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

Traits assisting selection of optimized integer byte swapping. More...

#include <osvr/Common/IntegerByteSwap.h>

Public Types

typedef boost::int_t< sizeof(T)*8 >
::exact 
int_t
 
typedef boost::uint_t< sizeof(T)*8 >
::exact 
uint_t
 
typedef std::conditional
< std::is_signed< T >::value,
uint_t, int_t >::type 
opposite_signedness_type
 
typedef std::add_const
< opposite_signedness_type >
::type 
const_opposite_signedness_type
 
typedef ByteSwap< T > ByteSwapper
 
typedef ByteSwap
< opposite_signedness_type > 
OppositeByteSwapper
 

Static Public Attributes

static const bool HAVE_BYTESWAPPER
 
static const bool HAVE_OPPPOSITEBYTESWAPPER
 

Detailed Description

template<typename T>
struct osvr::common::detail::IntegerByteSwapTraits< T >

Traits assisting selection of optimized integer byte swapping.

Template Parameters
Tan integer type, without const, volatile, or reference qualifiers.

Definition at line 149 of file IntegerByteSwap.h.

Member Data Documentation

template<typename T >
const bool osvr::common::detail::IntegerByteSwapTraits< T >::HAVE_BYTESWAPPER
static
Initial value:
=
IsByteSwapperSpecialized<ByteSwapper>::value

Definition at line 162 of file IntegerByteSwap.h.

template<typename T >
const bool osvr::common::detail::IntegerByteSwapTraits< T >::HAVE_OPPPOSITEBYTESWAPPER
static
Initial value:
=
IsByteSwapperSpecialized<OppositeByteSwapper>::value

Definition at line 164 of file IntegerByteSwap.h.


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