|
| ETL_STATIC_ASSERT (etl::is_integral< T >::value||etl::is_floating_point< T >::value, "Unaligned type must be integral or floating point") |
|
ETL_CONSTEXPR | unaligned_type () |
| Default constructor.
|
|
ETL_CONSTEXPR14 | unaligned_type (T value) |
| Construct from a value.
|
|
template<int Endian_Other> |
ETL_CONSTEXPR14 | unaligned_type (const unaligned_type< T, Endian_Other > &other) |
| Copy constructor.
|
|
ETL_CONSTEXPR14 unaligned_type & | operator= (T value) |
| Assignment operator.
|
|
template<int Endian_Other> |
ETL_CONSTEXPR14 unaligned_type & | operator= (const unaligned_type< T, Endian_Other > &other) |
| Assignment operator from other endianness.
|
|
ETL_CONSTEXPR14 | operator T () const |
| Conversion operator.
|
|
ETL_CONSTEXPR14 T | value () const |
| Get the value.
|
|
ETL_CONSTEXPR | unaligned_type_common () |
| Default constructor.
|
|
ETL_CONSTEXPR size_t | size () const |
| Size of the storage.
|
|
pointer | data () |
| Pointer to the beginning of the storage.
|
|
ETL_CONSTEXPR const_pointer | data () const |
| Const pointer to the beginning of the storage.
|
|
iterator | begin () |
| Iterator to the beginning of the storage.
|
|
ETL_CONSTEXPR const_iterator | begin () const |
| Const iterator to the beginning of the storage.
|
|
ETL_CONSTEXPR const_iterator | cbegin () const |
| Const iterator to the beginning of the storage.
|
|
reverse_iterator | rbegin () |
| Reverse iterator to the beginning of the storage.
|
|
ETL_CONSTEXPR14 const_reverse_iterator | rbegin () const |
| Const reverse iterator to the beginning of the storage.
|
|
ETL_CONSTEXPR14 const_reverse_iterator | crbegin () const |
| Const reverse iterator to the beginning of the storage.
|
|
iterator | end () |
| Iterator to the end of the storage.
|
|
ETL_CONSTEXPR const_iterator | end () const |
| Const iterator to the end of the storage.
|
|
ETL_CONSTEXPR const_iterator | cend () const |
| Const iterator to the end of the storage.
|
|
reverse_iterator | rend () |
| Reverse iterator to the end of the storage.
|
|
ETL_CONSTEXPR14 const_reverse_iterator | rend () const |
| Const reverse iterator to the end of the storage.
|
|
ETL_CONSTEXPR14 const_reverse_iterator | crend () const |
| Const reverse iterator to the end of the storage.
|
|
storage_type & | operator[] (int i) |
| Index operator.
|
|
ETL_CONSTEXPR const storage_type & | operator[] (int i) const |
| Const index operator.
|
|
template<typename T, int Endian_>
class etl::unaligned_type< T, Endian_ >
Allows an arithmetic type to be stored at an unaligned address.
unaligned_type
- Template Parameters
-
T | The arithmetic type. |
Endian | The endianness of the arithmetic type. |