|
libMesh
|
This Functor simply takes an object and reverses its byte representation. More...
#include <utility.h>
Public Member Functions | |
| ReverseBytes (const bool dr) | |
| Constructor. More... | |
| template<typename T > | |
| T | operator() (T &data) const |
| Functor. More... | |
Private Member Functions | |
| bool | reverse () const |
Private Attributes | |
| const bool | _do_reverse |
| flag More... | |
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 472 of file utility.h.
References _do_reverse.
Referenced by operator()().
|
private |
1.8.14