#include <endianness.hh>
Public Member Functions | |
void | apply (Type const &type) |
void | apply (Type const &type) |
void | display () |
void | display () |
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) |
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) |
void | swap (Value in, Value out) |
~CompileEndianSwapVisitor () | |
~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) |
void | skip (int skip_size) |
bool | visit_ (Container const &type) |
bool | visit_ (Compound const &type) |
bool | visit_ (Array const &type) |
bool | visit_ (Pointer const &type) |
bool | visit_ (Enum const &type) |
bool | visit_ (Numeric const &type) |
bool | visit_ (OpaqueType const &type) |
bool | visit_ (Container const &type) |
bool | visit_ (Compound const &type) |
bool | visit_ (Array const &type) |
bool | visit_ (Pointer const &type) |
bool | visit_ (Enum const &type) |
bool | visit_ (Numeric const &type) |
bool | visit_ (OpaqueType const &type) |
Private Attributes | |
size_t | m_output_index |
Definition at line 40 of file install/include/typelib/endianness.hh.
Typelib::CompileEndianSwapVisitor::~CompileEndianSwapVisitor | ( | ) | [inline] |
Definition at line 88 of file install/include/typelib/endianness.hh.
Typelib::CompileEndianSwapVisitor::~CompileEndianSwapVisitor | ( | ) | [inline] |
Definition at line 88 of file typelib/endianness.hh.
void Typelib::CompileEndianSwapVisitor::apply | ( | Type const & | type | ) |
Reimplemented from Typelib::TypeVisitor.
void Typelib::CompileEndianSwapVisitor::apply | ( | Type const & | type | ) |
Reimplemented from Typelib::TypeVisitor.
Definition at line 116 of file endianness.cc.
void Typelib::CompileEndianSwapVisitor::display | ( | ) |
void Typelib::CompileEndianSwapVisitor::display | ( | ) |
Definition at line 194 of file endianness.cc.
void Typelib::CompileEndianSwapVisitor::skip | ( | int | skip_size | ) | [protected] |
void Typelib::CompileEndianSwapVisitor::skip | ( | int | skip_size | ) | [protected] |
Definition at line 11 of file endianness.cc.
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 91 of file typelib/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 124 of file endianness.cc.
Definition at line 91 of file install/include/typelib/endianness.hh.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Container const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Compound const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Array const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Pointer const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Enum const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Numeric const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | OpaqueType const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Container const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 90 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Compound const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 93 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Array const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 59 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Pointer const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 57 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Enum const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 48 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | Numeric const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 23 of file endianness.cc.
bool Typelib::CompileEndianSwapVisitor::visit_ | ( | OpaqueType const & | type | ) | [protected, virtual] |
Reimplemented from Typelib::TypeVisitor.
Definition at line 55 of file endianness.cc.
static 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 install/include/typelib/endianness.hh.
static size_t const Typelib::CompileEndianSwapVisitor::FLAG_END = ((size_t) -3) [static] |
Definition at line 72 of file install/include/typelib/endianness.hh.
static size_t const Typelib::CompileEndianSwapVisitor::FLAG_SKIP = ((size_t) -1) [static] |
FLAG_SKIP <number of="" bytes="" to="" skip>="">
Definition at line 63 of file install/include/typelib/endianness.hh.
static size_t const Typelib::CompileEndianSwapVisitor::FLAG_SWAP_4 = ((size_t) -4) [static] |
Definition at line 73 of file install/include/typelib/endianness.hh.
static size_t const Typelib::CompileEndianSwapVisitor::FLAG_SWAP_8 = ((size_t) -5) [static] |
Definition at line 74 of file install/include/typelib/endianness.hh.
std::vector< size_t > Typelib::CompileEndianSwapVisitor::m_compiled |
Definition at line 57 of file install/include/typelib/endianness.hh.
size_t Typelib::CompileEndianSwapVisitor::m_output_index [private] |
Definition at line 45 of file install/include/typelib/endianness.hh.
static const size_t Typelib::CompileEndianSwapVisitor::SizeOfEnum = sizeof(int) [static] |
Definition at line 75 of file install/include/typelib/endianness.hh.