#include <endianness.hh>
Public Member Functions | |
void | apply (Type const &type) |
void | display () |
void | swap (Value in, Value out) |
std::pair< size_t, std::vector < size_t >::const_iterator > | swap (size_t output_offset, size_t input_offset, std::vector< size_t >::const_iterator it, std::vector< size_t >::const_iterator end, Value in, Value out) |
~CompileEndianSwapVisitor () | |
Public Attributes | |
std::vector< size_t > | m_compiled |
Static Public Attributes | |
static size_t const | FLAG_ARRAY = ((size_t) -2) |
static size_t const | FLAG_END = ((size_t) -3) |
static size_t const | FLAG_SKIP = ((size_t) -1) |
static size_t const | FLAG_SWAP_4 = ((size_t) -4) |
static size_t const | FLAG_SWAP_8 = ((size_t) -5) |
static const size_t | SizeOfEnum = sizeof(int) |
Protected Member Functions | |
void | skip (int skip_size) |
bool | visit_ (OpaqueType const &type) |
bool | visit_ (Numeric const &type) |
bool | visit_ (Enum const &type) |
bool | visit_ (Pointer const &type) |
bool | visit_ (Array const &type) |
bool | visit_ (Compound const &type) |
bool | visit_ (Container const &type) |
Private Attributes | |
size_t | m_output_index |
Definition at line 40 of file endianness.hh.
Definition at line 88 of file endianness.hh.
void Typelib::CompileEndianSwapVisitor::apply | ( | Type const & | type | ) |
Reimplemented from Typelib::TypeVisitor.
Definition at line 120 of file endianness.cc.
Definition at line 198 of file endianness.cc.
void Typelib::CompileEndianSwapVisitor::skip | ( | int | skip_size | ) | [protected] |
Definition at line 15 of file endianness.cc.
void Typelib::CompileEndianSwapVisitor::swap | ( | Value | in, |
Value | out | ||
) | [inline] |
Definition at line 91 of file endianness.hh.
std::pair< size_t, std::vector< size_t >::const_iterator > Typelib::CompileEndianSwapVisitor::swap | ( | size_t | output_offset, |
size_t | input_offset, | ||
std::vector< size_t >::const_iterator | it, | ||
std::vector< size_t >::const_iterator | end, | ||
Value | in, | ||
Value | out | ||
) |
Definition at line 128 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | OpaqueType const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 59 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Numeric const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 27 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Enum const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 52 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Pointer const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 61 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Array const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 63 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Compound const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 97 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Container const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 94 of file endianness.cc.
size_t const Typelib::CompileEndianSwapVisitor::FLAG_ARRAY = ((size_t) -2) [static] |
FLAG_ARRAY <array size="" in="" elements>=""> <element size="" in="" bytes>=""> <endian swapping="" code="" for="" the="" array="" elements>=""> FLAG_END
Definition at line 71 of file endianness.hh.
size_t const Typelib::CompileEndianSwapVisitor::FLAG_END = ((size_t) -3) [static] |
Definition at line 72 of file endianness.hh.
size_t const Typelib::CompileEndianSwapVisitor::FLAG_SKIP = ((size_t) -1) [static] |
FLAG_SKIP <number of="" bytes="" to="" skip>="">
Definition at line 63 of file endianness.hh.
size_t const Typelib::CompileEndianSwapVisitor::FLAG_SWAP_4 = ((size_t) -4) [static] |
Definition at line 73 of file endianness.hh.
size_t const Typelib::CompileEndianSwapVisitor::FLAG_SWAP_8 = ((size_t) -5) [static] |
Definition at line 74 of file endianness.hh.
std::vector<size_t> Typelib::CompileEndianSwapVisitor::m_compiled |
Definition at line 57 of file endianness.hh.
size_t Typelib::CompileEndianSwapVisitor::m_output_index [private] |
Definition at line 45 of file endianness.hh.
size_t const Typelib::CompileEndianSwapVisitor::SizeOfEnum = sizeof(int) [static] |
Definition at line 75 of file endianness.hh.