Developer documentation
Version 3.0.3-105-gd3941f44
MR::ByteOrder Namespace Reference

Functions

template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==1, ValueType >::type swap (ValueType v)
 
template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==2, ValueType >::type swap (ValueType v)
 
template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==4, ValueType >::type swap (ValueType v)
 
template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==8, ValueType >::type swap (ValueType v)
 
template<typename ValueType >
std::enable_if< is_complex< ValueType >::value, ValueType >::type swap (ValueType v)
 
template<typename ValueType >
ValueType LE (ValueType v)
 
template<typename ValueType >
ValueType BE (ValueType v)
 
template<typename ValueType >
ValueType swap (const ValueType value, bool is_big_endian)
 

Function Documentation

◆ BE()

template<typename ValueType >
ValueType MR::ByteOrder::BE ( ValueType  v)
inline

Definition at line 94 of file raw.h.

◆ LE()

template<typename ValueType >
ValueType MR::ByteOrder::LE ( ValueType  v)
inline

Definition at line 91 of file raw.h.

◆ swap() [1/6]

template<typename ValueType >
ValueType MR::ByteOrder::swap ( const ValueType  value,
bool  is_big_endian 
)
inline

Definition at line 97 of file raw.h.

◆ swap() [2/6]

template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==1, ValueType >::type MR::ByteOrder::swap ( ValueType  v)
inline

Definition at line 49 of file raw.h.

◆ swap() [3/6]

template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==2, ValueType >::type MR::ByteOrder::swap ( ValueType  v)
inline

Definition at line 54 of file raw.h.

◆ swap() [4/6]

template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==4, ValueType >::type MR::ByteOrder::swap ( ValueType  v)
inline

Definition at line 64 of file raw.h.

◆ swap() [5/6]

template<typename ValueType >
std::enable_if< std::is_fundamental< ValueType >::value &&sizeof(ValueType)==8, ValueType >::type MR::ByteOrder::swap ( ValueType  v)
inline

Definition at line 75 of file raw.h.

◆ swap() [6/6]

template<typename ValueType >
std::enable_if< is_complex< ValueType >::value, ValueType >::type MR::ByteOrder::swap ( ValueType  v)
inline

Definition at line 88 of file raw.h.