ByteOrder.h File Reference


Detailed Description

Defines a general reverseBytes template and a specialization for complex.

The general template is implemented by the struct ByteReverser, which is not published.

#include "Utilities/ElementProperties.h"
#include <complex>

Include dependency graph for ByteOrder.h:


Functions

template<class T>
void reverseBytes (T &t)
 The exported interface to the above template is the global reverseBytes template.
template<class FloatType>
void reverseBytes (std::complex< FloatType > &t)
 We overload directly for class complex.

Function Documentation

template<class T>
void reverseBytes ( T &  t  )  [inline]

The exported interface to the above template is the global reverseBytes template.

The general template delegates directly to the ByteReverser class above.

References reverseBytes().

Referenced by reverseBytes().

template<class FloatType>
void reverseBytes ( std::complex< FloatType > &  t  )  [inline]

We overload directly for class complex.

References imag(), real(), and reverseBytes().


Generated on Sun May 17 21:37:37 2009 for FreePOOMA by  doxygen 1.5.5