OSVR-Core
Public Types | Static Public Attributes | List of all members
osvr::common::detail::IntegerByteSwapTraits< T > Struct Template Reference

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

#include <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< TByteSwapper
 
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.

Member Data Documentation

§ HAVE_BYTESWAPPER

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

§ HAVE_OPPPOSITEBYTESWAPPER

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

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