#include <utility.h>
Public Member Functions | |
ReverseBytes (const bool dr) | |
template<typename T > | |
T | operator() (T &data) const |
Private Member Functions | |
bool | reverse () const |
Private Attributes | |
const bool | _do_reverse |
This Functor simply takes an object and reverses its byte representation. This is useful for changing endian-ness for file IO. This class has been tested on x86 architectures with 4-byte words.
|
inlineexplicit |
|
inline |
|
inlineprivate |
Definition at line 312 of file utility.h.
References _do_reverse.
Referenced by operator()().
|
private |