Embedded Template Library 1.0
|
Classes | |
class | etl::bitset_exception |
class | etl::bitset_nullptr |
class | etl::bitset_type_too_small |
class | etl::bitset_overflow |
class | etl::ibitset |
class | etl::bitset< MaxN > |
Bitset forward declaration. More... | |
struct | etl::bitset_storage_model |
class | etl::bitset_string_too_small |
class | etl::bitset_invalid_buffer |
class | etl::bitset_impl< TElement, Bitset_Layout > |
class | etl::bitset_impl< TElement, etl::bitset_storage_model::Single > |
class | etl::bitset_impl< TElement, etl::bitset_storage_model::Multi > |
Functions | |
template<size_t MaxN> | |
bitset< MaxN > | etl::operator& (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs) |
template<size_t MaxN> | |
bitset< MaxN > | etl::operator| (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs) |
template<size_t MaxN> | |
bitset< MaxN > | etl::operator^ (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs) |
template<size_t MaxN> | |
bool | etl::operator!= (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs) |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bitset< Active_Bits > | etl::operator& (const bitset< Active_Bits, TElement > &lhs, const bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bitset< Active_Bits > | etl::operator| (const bitset< Active_Bits, TElement > &lhs, const bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bitset< Active_Bits > | etl::operator^ (const bitset< Active_Bits, TElement > &lhs, const bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bool | operator!= (const etl::bitset< Active_Bits, TElement > &lhs, const etl::bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bool | operator!= (const etl::bitset_ext< Active_Bits, TElement > &lhs, const etl::bitset_ext< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator== (const etl::bitset< Active_Bits, TLhsElement > &lhs, const etl::bitset< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator!= (const etl::bitset< Active_Bits, TLhsElement > &lhs, const etl::bitset< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator== (const etl::bitset_ext< Active_Bits, TLhsElement > &lhs, const etl::bitset_ext< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator!= (const etl::bitset_ext< Active_Bits, TLhsElement > &lhs, const etl::bitset_ext< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bool | operator== (const etl::bitset< Active_Bits, TElement > &lhs, const etl::bitset_ext< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bool | operator!= (const etl::bitset< Active_Bits, TElement > &lhs, const etl::bitset_ext< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bool | operator== (const etl::bitset_ext< Active_Bits, TElement > &lhs, const etl::bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement > | |
ETL_CONSTEXPR14 bool | operator!= (const etl::bitset_ext< Active_Bits, TElement > &lhs, const etl::bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator== (const etl::bitset< Active_Bits, TLhsElement > &lhs, const etl::bitset_ext< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator!= (const etl::bitset< Active_Bits, TLhsElement > &lhs, const etl::bitset_ext< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator== (const etl::bitset_ext< Active_Bits, TLhsElement > &lhs, const etl::bitset< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
template<size_t Active_Bits, typename TLhsElement , typename TRhsElement > | |
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type | operator!= (const etl::bitset_ext< Active_Bits, TLhsElement > &lhs, const etl::bitset< Active_Bits, TRhsElement > &rhs) ETL_NOEXCEPT |
Similar to std::bitset but without requiring std::string.
class etl::bitset_exception |
Exception base for bitset
Public Member Functions | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
![]() | |
ETL_CONSTEXPR | exception (string_type reason_, string_type, numeric_type line_) |
Constructor. | |
ETL_CONSTEXPR string_type | what () const |
ETL_CONSTEXPR string_type | file_name () const |
ETL_CONSTEXPR numeric_type | line_number () const |
Additional Inherited Members | |
![]() | |
typedef const char * | string_type |
typedef int | numeric_type |
class etl::bitset_nullptr |
Bitset null pointer exception.
Public Member Functions | |
bitset_nullptr (string_type file_name_, numeric_type line_number_) | |
![]() | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
![]() | |
ETL_CONSTEXPR | exception (string_type reason_, string_type, numeric_type line_) |
Constructor. | |
ETL_CONSTEXPR string_type | what () const |
ETL_CONSTEXPR string_type | file_name () const |
ETL_CONSTEXPR numeric_type | line_number () const |
Additional Inherited Members | |
![]() | |
typedef const char * | string_type |
typedef int | numeric_type |
class etl::bitset_type_too_small |
Bitset type_too_small exception.
Public Member Functions | |
bitset_type_too_small (string_type file_name_, numeric_type line_number_) | |
![]() | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
![]() | |
ETL_CONSTEXPR | exception (string_type reason_, string_type, numeric_type line_) |
Constructor. | |
ETL_CONSTEXPR string_type | what () const |
ETL_CONSTEXPR string_type | file_name () const |
ETL_CONSTEXPR numeric_type | line_number () const |
Additional Inherited Members | |
![]() | |
typedef const char * | string_type |
typedef int | numeric_type |
class etl::bitset_overflow |
Bitset overflow exception.
Public Member Functions | |
bitset_overflow (string_type file_name_, numeric_type line_number_) | |
bitset_overflow (string_type file_name_, numeric_type line_number_) | |
![]() | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
![]() | |
ETL_CONSTEXPR | exception (string_type reason_, string_type, numeric_type line_) |
Constructor. | |
ETL_CONSTEXPR string_type | what () const |
ETL_CONSTEXPR string_type | file_name () const |
ETL_CONSTEXPR numeric_type | line_number () const |
Additional Inherited Members | |
![]() | |
typedef const char * | string_type |
typedef int | numeric_type |
class etl::ibitset |
The base class for etl::bitset
Public Types | |
enum | { npos = etl::integral_limits<size_t>::max } |
typedef size_t | size_type |
typedef etl::make_unsigned< ETL_BITSET_ELEMENT_TYPE >::type | element_type |
typedef element_type | element_t |
Public Member Functions | |
size_t | size () const |
The number of bits in the bitset. | |
size_t | count () const |
Count the number of bits set. | |
bool | test (size_t position) const |
ibitset & | set () |
Set all bits. | |
ibitset & | set (size_t position, bool value=true) |
Set the bit at the position. | |
ibitset & | from_string (const char *text) |
Set from a string. | |
ibitset & | from_string (const wchar_t *text) |
Set from a wide string. | |
ibitset & | from_string (const char16_t *text) |
Set from a u16 string. | |
ibitset & | from_string (const char32_t *text) |
Set from a u32 string. | |
ibitset & | set (const char *text) |
Set from a string. | |
ibitset & | set (const wchar_t *text) |
Set from a wstring. | |
ibitset & | set (const char16_t *text) |
Set from a u16string. | |
ibitset & | set (const char32_t *text) |
Set from a u32string. | |
template<typename T > | |
etl::enable_if< etl::is_integral< T >::value, T >::type | value () const |
Put to a value. | |
unsigned long | to_ulong () const |
Put to a unsigned long. | |
unsigned long long | to_ullong () const |
Put to a unsigned long long. | |
ibitset & | reset () |
Resets the bitset. | |
ibitset & | reset (size_t position) |
Reset the bit at the position. | |
ibitset & | flip () |
Flip all of the bits. | |
ibitset & | flip (size_t position) |
Flip the bit at the position. | |
bool | all () const |
bool | any () const |
Are any of the bits set? | |
bool | none () const |
Are none of the bits set? | |
size_t | find_first (bool state) const |
size_t | find_next (bool state, size_t position) const |
bool | operator[] (size_t position) const |
Read [] operator. | |
bit_reference | operator[] (size_t position) |
Write [] operator. | |
ibitset & | operator&= (const ibitset &other) |
operator &= | |
ibitset & | operator|= (const ibitset &other) |
operator |= | |
ibitset & | operator^= (const ibitset &other) |
operator ^= | |
ibitset & | operator<<= (size_t shift) |
operator <<= | |
ibitset & | operator>>= (size_t shift) |
operator >>= | |
ibitset & | operator= (const ibitset &other) |
operator = | |
void | swap (ibitset &other) |
swap | |
Static Public Attributes | |
static ETL_CONSTANT element_type | ALL_SET = etl::integral_limits<element_type>::max |
static ETL_CONSTANT element_type | ALL_CLEAR = 0 |
static ETL_CONSTANT size_t | Bits_Per_Element = etl::integral_limits<element_type>::bits |
Protected Member Functions | |
ibitset & | initialise (unsigned long long value) |
Initialise from an unsigned long long. | |
void | invert () |
Invert. | |
bit_reference | get_bit_reference (size_t position) |
Gets a reference to the specified bit. | |
ibitset (size_t nbits_, size_t size_, element_type *pdata_) | |
Constructor. | |
~ibitset () | |
Destructor. | |
Static Protected Member Functions | |
static bool | is_equal (const ibitset &lhs, const ibitset &rhs) |
Compare bitsets. | |
Protected Attributes | |
element_type | Top_Mask |
Finds the first bit in the specified state.
state | The state to search for. |
Finds the next bit in the specified state.
state | The state to search for. |
position | The position to start from. |
class etl::bitset |
Bitset forward declaration.
The bitset top level template.
The class emulates an array of bool elements, but optimized for space allocation. Will accommodate any number of bits. Does not use std::string.
MaxN | The number of bits. |
Public Types | |
typedef etl::private_bitset::bitset_common< Active_Bits, TElement >::element_type | element_type |
typedef etl::private_bitset::bitset_common< Active_Bits, TElement >::span_type | span_type |
typedef etl::private_bitset::bitset_common< Active_Bits, TElement >::const_span_type | const_span_type |
![]() | |
enum | { npos = etl::integral_limits<size_t>::max } |
typedef size_t | size_type |
typedef etl::make_unsigned< ETL_BITSET_ELEMENT_TYPE >::type | element_type |
typedef element_type | element_t |
![]() | |
typedef etl::private_bitset::bitset_impl_common< TElement >::element_type | element_type |
typedef etl::span< element_type, Number_Of_Elements > | span_type |
typedef etl::span< const element_type, Number_Of_Elements > | const_span_type |
![]() | |
typedef TElement | element_type |
typedef TElement * | pointer |
typedef const TElement * | const_pointer |
typedef size_t | size_type |
Public Member Functions | |
bitset () | |
Default constructor. | |
bitset (const bitset< MaxN > &other) | |
Copy constructor. | |
bitset (unsigned long long value) | |
Construct from a value. | |
bitset (const char *text) | |
Construct from a string. | |
bitset (const wchar_t *text) | |
Construct from a string. | |
bitset (const char16_t *text) | |
Construct from a string. | |
bitset (const char32_t *text) | |
Construct from a string. | |
bitset< MaxN > & | set () |
Set all of the bits. | |
bitset< MaxN > & | set (size_t position, bool value=true) |
Set the bit at the position. | |
bitset< MaxN > & | set (const char *text) |
Set from a string. | |
bitset< MaxN > & | set (const wchar_t *text) |
Set from a string. | |
bitset< MaxN > & | set (const char16_t *text) |
Set from a string. | |
bitset< MaxN > & | set (const char32_t *text) |
Set from a string. | |
bitset< MaxN > & | from_string (const char *text) |
Set from a string. | |
bitset< MaxN > & | from_string (const wchar_t *text) |
Set from a wide string. | |
bitset< MaxN > & | from_string (const char16_t *text) |
Set from a u16 string. | |
bitset< MaxN > & | from_string (const char32_t *text) |
Set from a u32 string. | |
template<typename T > | |
etl::enable_if< etl::is_integral< T >::value, T >::type | value () const |
Put to a value. | |
bitset< MaxN > & | reset () |
Reset all of the bits. | |
bitset< MaxN > & | reset (size_t position) |
Reset the bit at the position. | |
bitset< MaxN > & | flip () |
Flip all of the bits. | |
bitset< MaxN > & | flip (size_t position) |
Flip the bit at the position. | |
template<typename TString > | |
TString | to_string (typename TString::value_type zero=typename TString::value_type('0'), typename TString::value_type one=typename TString::value_type('1')) const |
Returns a string representing the bitset. | |
bitset< MaxN > & | operator= (const bitset< MaxN > &other) |
operator = | |
bitset< MaxN > & | operator&= (const bitset< MaxN > &other) |
operator &= | |
bitset< MaxN > & | operator|= (const bitset< MaxN > &other) |
operator |= | |
bitset< MaxN > & | operator^= (const bitset< MaxN > &other) |
operator ^= | |
bitset< MaxN > | operator~ () const |
operator ~ | |
bitset< MaxN > | operator<< (size_t shift) const |
operator << | |
bitset< MaxN > & | operator<<= (size_t shift) |
operator <<= | |
bitset< MaxN > | operator>> (size_t shift) const |
operator >> | |
bitset< MaxN > & | operator>>= (size_t shift) |
operator >>= | |
ETL_STATIC_ASSERT (etl::is_unsigned< TElement >::value, "The element type must be unsigned") | |
ETL_CONSTEXPR14 | bitset () ETL_NOEXCEPT |
Default constructor. | |
ETL_CONSTEXPR14 | bitset (const bitset< Active_Bits, TElement > &other) ETL_NOEXCEPT |
Copy constructor. | |
template<typename TValue > | |
ETL_CONSTEXPR14 | bitset (TValue value, typename etl::enable_if< is_integral< TValue >::value >::type *=0) ETL_NOEXCEPT |
Construct from a value. | |
template<typename TPString > | |
ETL_CONSTEXPR14 | bitset (TPString text, typename etl::enable_if< is_same< TPString, const char * >::value >::type *=0) ETL_NOEXCEPT |
Construct from a string. | |
template<typename TPString > | |
ETL_CONSTEXPR14 | bitset (TPString text, typename etl::enable_if< is_same< TPString, const wchar_t * >::value >::type *=0) ETL_NOEXCEPT |
Construct from a string. | |
template<typename TPString > | |
ETL_CONSTEXPR14 | bitset (TPString text, typename etl::enable_if< is_same< TPString, const char16_t * >::value >::type *=0) ETL_NOEXCEPT |
Construct from a string. | |
template<typename TPString > | |
ETL_CONSTEXPR14 | bitset (TPString text, typename etl::enable_if< is_same< TPString, const char32_t * >::value >::type *=0) ETL_NOEXCEPT |
Construct from a string. | |
ETL_CONSTEXPR14 bitset & | operator= (const bitset< Active_Bits, TElement > &other) ETL_NOEXCEPT |
Assignment operator. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | set () ETL_NOEXCEPT |
Set all of the bits. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | set (size_t position, bool value=true) |
Set the bit at the position. | |
template<size_t Position> | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | set (bool value=true) |
Set the bit at the position. | |
template<size_t Position, bool Value> | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | set () |
Set the bit at the position. | |
template<typename TPString > | |
ETL_CONSTEXPR14 etl::enable_if< etl::is_same< TPString, constchar * >::value, bitset< Active_Bits, TElement > & >::type | set (TPString text) ETL_NOEXCEPT |
Set from a string. | |
template<typename TPString > | |
ETL_CONSTEXPR14 etl::enable_if< etl::is_same< TPString, constwchar_t * >::value, bitset< Active_Bits, TElement > & >::type | set (TPString text) ETL_NOEXCEPT |
Set from a wide string. | |
template<typename TPString > | |
ETL_CONSTEXPR14 etl::enable_if< etl::is_same< TPString, constchar16_t * >::value, bitset< Active_Bits, TElement > & >::type | set (TPString text) ETL_NOEXCEPT |
Set from a char16 string. | |
template<typename TPString > | |
ETL_CONSTEXPR14 etl::enable_if< etl::is_same< TPString, constchar32_t * >::value, bitset< Active_Bits, TElement > & >::type | set (TPString text) ETL_NOEXCEPT |
Set from a char32 string. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | from_string (const char *text) ETL_NOEXCEPT |
Set from a string. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | from_string (const wchar_t *text) ETL_NOEXCEPT |
Set from a wide string. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | from_string (const char16_t *text) ETL_NOEXCEPT |
Set from a u16 string. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | from_string (const char32_t *text) ETL_NOEXCEPT |
Set from a u32 string. | |
template<typename T > | |
ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value, T >::type | value () const ETL_NOEXCEPT |
Get as an integral value. | |
template<typename T > | |
ETL_CONSTEXPR14 T | extract (size_t position, size_t length=etl::integral_limits< T >::bits) const |
template<typename T , size_t Position, size_t Length> | |
ETL_CONSTEXPR14 T | extract () const |
unsigned long | to_ulong () const |
Get as an unsigned long. | |
unsigned long long | to_ullong () const |
Get as an unsigned long long. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | reset () ETL_NOEXCEPT |
Reset all of the bits. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | reset (size_t position) |
Reset the bit at the position. | |
ETL_CONSTEXPR14 bool | test (size_t position) const |
template<size_t Position> | |
ETL_CONSTEXPR14 bool | test () const |
ETL_CONSTEXPR14 size_t | count () const ETL_NOEXCEPT |
Count the number of bits set. | |
ETL_CONSTEXPR14 bool | all () const ETL_NOEXCEPT |
ETL_CONSTEXPR14 bool | all (element_type mask) const ETL_NOEXCEPT |
ETL_CONSTEXPR14 bool | none () const ETL_NOEXCEPT |
Are none of the bits set? | |
ETL_CONSTEXPR14 bool | none (element_type mask) const ETL_NOEXCEPT |
Are none of the mask bits set? | |
ETL_CONSTEXPR14 bool | any () const ETL_NOEXCEPT |
Are any of the bits set? | |
ETL_CONSTEXPR14 bool | any (element_type mask) const ETL_NOEXCEPT |
Are any of the mask bits set? | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | flip () ETL_NOEXCEPT |
Flip all of the bits. | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | flip (size_t position) |
Flip the bit at the position. | |
ETL_CONSTEXPR14 bool | operator[] (size_t position) const ETL_NOEXCEPT |
Read [] operator. | |
ETL_CONSTEXPR14 bit_reference | operator[] (size_t position) ETL_NOEXCEPT |
Write [] operator. | |
template<typename TString > | |
ETL_CONSTEXPR14 TString | to_string (typename TString::value_type zero=typename TString::value_type('0'), typename TString::value_type one=typename TString::value_type('1')) const |
Returns a string representing the bitset. | |
ETL_CONSTEXPR14 size_t | find_first (bool state) const ETL_NOEXCEPT |
ETL_CONSTEXPR14 size_t | find_next (bool state, size_t position) const ETL_NOEXCEPT |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > | operator& (const bitset< Active_Bits, TElement > &other) const ETL_NOEXCEPT |
operator & | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | operator&= (const bitset< Active_Bits, TElement > &other) ETL_NOEXCEPT |
operator &= | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > | operator| (const bitset< Active_Bits, TElement > &other) const ETL_NOEXCEPT |
operator | | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | operator|= (const bitset< Active_Bits, TElement > &other) ETL_NOEXCEPT |
operator |= | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > | operator^ (const bitset< Active_Bits, TElement > &other) const ETL_NOEXCEPT |
operator ^ | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | operator^= (const bitset< Active_Bits, TElement > &other) ETL_NOEXCEPT |
operator ^= | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > | operator~ () const ETL_NOEXCEPT |
operator ~ | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > | operator<< (size_t shift) const ETL_NOEXCEPT |
operator << | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | operator<<= (size_t shift) ETL_NOEXCEPT |
operator <<= | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > | operator>> (size_t shift) const ETL_NOEXCEPT |
operator >> | |
ETL_CONSTEXPR14 bitset< Active_Bits, TElement > & | operator>>= (size_t shift) ETL_NOEXCEPT |
operator >>= | |
ETL_CONSTEXPR14 void | swap (etl::bitset< Active_Bits, TElement > &other) ETL_NOEXCEPT |
swap | |
ETL_CONSTEXPR14 span_type | span () ETL_NOEXCEPT |
ETL_CONSTEXPR14 const_span_type | span () const ETL_NOEXCEPT |
![]() | |
size_t | size () const |
The number of bits in the bitset. | |
size_t | count () const |
Count the number of bits set. | |
bool | test (size_t position) const |
ibitset & | set () |
Set all bits. | |
ibitset & | set (size_t position, bool value=true) |
Set the bit at the position. | |
ibitset & | from_string (const char *text) |
Set from a string. | |
ibitset & | from_string (const wchar_t *text) |
Set from a wide string. | |
ibitset & | from_string (const char16_t *text) |
Set from a u16 string. | |
ibitset & | from_string (const char32_t *text) |
Set from a u32 string. | |
ibitset & | set (const char *text) |
Set from a string. | |
ibitset & | set (const wchar_t *text) |
Set from a wstring. | |
ibitset & | set (const char16_t *text) |
Set from a u16string. | |
ibitset & | set (const char32_t *text) |
Set from a u32string. | |
template<typename T > | |
etl::enable_if< etl::is_integral< T >::value, T >::type | value () const |
Put to a value. | |
unsigned long | to_ulong () const |
Put to a unsigned long. | |
unsigned long long | to_ullong () const |
Put to a unsigned long long. | |
ibitset & | reset () |
Resets the bitset. | |
ibitset & | reset (size_t position) |
Reset the bit at the position. | |
ibitset & | flip () |
Flip all of the bits. | |
ibitset & | flip (size_t position) |
Flip the bit at the position. | |
bool | all () const |
bool | any () const |
Are any of the bits set? | |
bool | none () const |
Are none of the bits set? | |
size_t | find_first (bool state) const |
size_t | find_next (bool state, size_t position) const |
bool | operator[] (size_t position) const |
Read [] operator. | |
bit_reference | operator[] (size_t position) |
Write [] operator. | |
ibitset & | operator&= (const ibitset &other) |
operator &= | |
ibitset & | operator|= (const ibitset &other) |
operator |= | |
ibitset & | operator^= (const ibitset &other) |
operator ^= | |
ibitset & | operator<<= (size_t shift) |
operator <<= | |
ibitset & | operator>>= (size_t shift) |
operator >>= | |
ibitset & | operator= (const ibitset &other) |
operator = | |
void | swap (ibitset &other) |
swap | |
Static Public Member Functions | |
static ETL_CONSTEXPR size_t | size () ETL_NOEXCEPT |
The number of bits in the bitset. | |
static ETL_CONSTEXPR size_t | number_of_elements () ETL_NOEXCEPT |
The number of storage elements in the bitset. | |
static ETL_CONSTEXPR element_type | all_set_element () ETL_NOEXCEPT |
The value of a set element. | |
static ETL_CONSTEXPR element_type | all_clear_element () ETL_NOEXCEPT |
The value of a clear element. | |
static ETL_CONSTEXPR size_t | bits_per_element () ETL_NOEXCEPT |
The number of bits in an element. | |
static ETL_CONSTEXPR element_type | top_mask () ETL_NOEXCEPT |
The mask for the msb element. | |
static ETL_CONSTEXPR size_t | allocated_bits () ETL_NOEXCEPT |
The total number of bits of storage, including unused. | |
static ETL_CONSTEXPR etl::bitset_storage_model | storage_model () ETL_NOEXCEPT |
Static Public Attributes | |
static ETL_CONSTANT size_t | ALLOCATED_BITS = Array_Size * Bits_Per_Element |
static ETL_CONSTANT size_t | Allocated_Bits = ALLOCATED_BITS |
![]() | |
static ETL_CONSTANT element_type | ALL_SET = etl::integral_limits<element_type>::max |
static ETL_CONSTANT element_type | ALL_CLEAR = 0 |
static ETL_CONSTANT size_t | Bits_Per_Element = etl::integral_limits<element_type>::bits |
![]() | |
static ETL_CONSTANT size_t | Number_Of_Elements = (Active_Bits % Bits_Per_Element == 0) ? Active_Bits / Bits_Per_Element : Active_Bits / Bits_Per_Element + 1 |
static ETL_CONSTANT size_t | Size = Active_Bits |
static ETL_CONSTANT size_t | Allocated_Bits = Number_Of_Elements * Bits_Per_Element |
static ETL_CONSTANT etl::bitset_storage_model | Storage_Model = (bitset_common<Active_Bits, TElement>::Number_Of_Elements == 1U) ? etl::bitset_storage_model::Single : etl::bitset_storage_model::Multi |
static ETL_CONSTANT TElement | Top_Mask = element_type(Top_Mask_Shift == 0 ? All_Set_Element : ~(All_Set_Element << Top_Mask_Shift)) |
![]() | |
static ETL_CONSTANT size_t | npos = etl::integral_limits<size_t>::max |
static ETL_CONSTANT size_t | Bits_Per_Element = etl::integral_limits<TElement>::bits |
static ETL_CONSTANT TElement | All_Set_Element = etl::integral_limits<TElement>::max |
static ETL_CONSTANT TElement | All_Clear_Element = element_type(0) |
Friends | |
bool | operator== (const bitset< MaxN > &lhs, const bitset< MaxN > &rhs) |
operator == | |
ETL_CONSTEXPR14 bool | operator== (const bitset< Active_Bits, TElement > &lhs, const bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
operator == | |
ETL_CONSTEXPR14 bool | operator!= (const bitset< Active_Bits, TElement > &lhs, const bitset< Active_Bits, TElement > &rhs) ETL_NOEXCEPT |
operator != | |
Additional Inherited Members | |
![]() | |
ibitset & | initialise (unsigned long long value) |
Initialise from an unsigned long long. | |
void | invert () |
Invert. | |
bit_reference | get_bit_reference (size_t position) |
Gets a reference to the specified bit. | |
ibitset (size_t nbits_, size_t size_, element_type *pdata_) | |
Constructor. | |
~ibitset () | |
Destructor. | |
![]() | |
static bool | is_equal (const ibitset &lhs, const ibitset &rhs) |
Compare bitsets. | |
![]() | |
element_type | Top_Mask |
|
inline |
Extract an integral value from an arbitrary position and length. Compile time position and length.
|
inline |
Extract an integral value from an arbitrary position and length. Run time position and length.
|
inline |
Finds the first bit in the specified state.
state | The state to search for. |
|
inline |
Finds the next bit in the specified state.
state | The state to search for. |
position | The position to start from. |
|
inline |
span Returns a const span of the underlying buffer.
|
inline |
span Returns a span of the underlying buffer.
|
inlinestatic |
The storage model for the bitset. etl::bitset_storage_model::Single etl::bitset_storage_model::Multi
|
inline |
Tests a bit at a position. Positions greater than the number of configured bits will not compile.
|
inline |
Tests a bit at a position. Positions greater than the number of configured bits will return false.
struct etl::bitset_storage_model |
class etl::bitset_string_too_small |
Bitset type_too_small exception.
Public Member Functions | |
bitset_string_too_small (string_type file_name_, numeric_type line_number_) | |
![]() | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
![]() | |
ETL_CONSTEXPR | exception (string_type reason_, string_type, numeric_type line_) |
Constructor. | |
ETL_CONSTEXPR string_type | what () const |
ETL_CONSTEXPR string_type | file_name () const |
ETL_CONSTEXPR numeric_type | line_number () const |
Additional Inherited Members | |
![]() | |
typedef const char * | string_type |
typedef int | numeric_type |
class etl::bitset_invalid_buffer |
Bitset nullptr buffer exception.
Public Member Functions | |
bitset_invalid_buffer (string_type file_name_, numeric_type line_number_) | |
![]() | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
bitset_exception (string_type reason_, string_type file_name_, numeric_type line_number_) | |
![]() | |
ETL_CONSTEXPR | exception (string_type reason_, string_type, numeric_type line_) |
Constructor. | |
ETL_CONSTEXPR string_type | what () const |
ETL_CONSTEXPR string_type | file_name () const |
ETL_CONSTEXPR numeric_type | line_number () const |
Additional Inherited Members | |
![]() | |
typedef const char * | string_type |
typedef int | numeric_type |
class etl::bitset_impl |
class etl::bitset_impl< TElement, etl::bitset_storage_model::Single > |
The implementation class for single element etl::bitset
Static Public Member Functions | |
static ETL_CONSTEXPR14 void | set_all (pointer pbuffer, size_t, element_type top_mask) ETL_NOEXCEPT |
Set all of the bits. | |
static ETL_CONSTEXPR14 void | set_position (pointer pbuffer, size_t position, bool value=true) |
Set the bit at the position. | |
template<size_t Position> | |
static ETL_CONSTEXPR14 void | set_position (pointer pbuffer, bool value=true) |
Set the bit at the position. | |
template<size_t Position, bool Value> | |
static ETL_CONSTEXPR14 void | set_position (pointer pbuffer) |
Set the bit at the position. | |
static ETL_CONSTEXPR14 void | reset_all (pointer pbuffer, size_t) ETL_NOEXCEPT |
Reset all of the bits. | |
static ETL_CONSTEXPR14 void | reset_position (pointer pbuffer, size_t position) |
Reset the bit at the position. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t, size_t active_bits, const char *text) ETL_NOEXCEPT |
Set from a string. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t, size_t active_bits, const wchar_t *text) ETL_NOEXCEPT |
Set from a wide string. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t, size_t active_bits, const char16_t *text) ETL_NOEXCEPT |
Set from a u16 string. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t, size_t active_bits, const char32_t *text) ETL_NOEXCEPT |
Set from a u32 string. | |
template<typename T > | |
static ETL_CONSTEXPR14 T | value (const_pointer pbuffer, size_t) ETL_NOEXCEPT |
Get as an integral value. | |
template<typename T > | |
static ETL_CONSTEXPR14 T | extract (const_pointer pbuffer, size_t position, size_t length=etl::integral_limits< T >::bits) |
Extract an integral value from an arbitrary position and length. | |
template<typename T , size_t Position, size_t Length> | |
static ETL_CONSTEXPR14 T | extract (const_pointer pbuffer) |
Extract an integral value from an arbitrary position and length. | |
static ETL_CONSTEXPR14 bool | test (const_pointer pbuffer, size_t position) |
static ETL_CONSTEXPR14 size_t | count (const_pointer pbuffer, size_t) ETL_NOEXCEPT |
Count the number of bits set. | |
static ETL_CONSTEXPR14 bool | all (const_pointer pbuffer, size_t, element_type top_mask) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 bool | all (const_pointer pbuffer, size_t, element_type top_mask, element_type mask) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 bool | none (const_pointer pbuffer, size_t) ETL_NOEXCEPT |
Are none of the bits set? | |
static ETL_CONSTEXPR14 bool | none (const_pointer pbuffer, size_t, element_type mask) ETL_NOEXCEPT |
Are none of the mask bits set? | |
static ETL_CONSTEXPR14 bool | any (const_pointer pbuffer, size_t) ETL_NOEXCEPT |
Are any of the bits set? | |
static ETL_CONSTEXPR14 bool | any (const_pointer pbuffer, size_t, element_type mask) ETL_NOEXCEPT |
Are any of the mask bits set? | |
static ETL_CONSTEXPR14 void | flip_all (pointer pbuffer, size_t) ETL_NOEXCEPT |
Flip all of the bits. | |
static ETL_CONSTEXPR14 void | flip_bits (pointer pbuffer, element_type mask=etl::integral_limits< element_type >::max) ETL_NOEXCEPT |
Flip some of the bits. | |
static ETL_CONSTEXPR14 void | flip_position (pointer pbuffer, size_t position) |
Flip the bit at the position. | |
template<typename TString > | |
static ETL_CONSTEXPR14 TString | to_string (const_pointer pbuffer, size_t active_bits, typename TString::value_type zero=typename TString::value_type('0'), typename TString::value_type one=typename TString::value_type('1')) |
Returns a string representing the bitset. | |
static ETL_CONSTEXPR14 size_t | find_next (const_pointer pbuffer, size_t, size_t active_bits, bool state, size_t position) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 void | operator_assignment (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 void | operator_and (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 void | operator_or (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 void | operator_xor (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 void | operator_not (pointer pbuffer, size_t) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 void | operator_shift_left (pointer pbuffer, size_t, size_t active_bits, size_t shift) ETL_NOEXCEPT |
operator_shift_left | |
static ETL_CONSTEXPR14 void | operator_shift_right (pointer pbuffer, size_t, size_t active_bits, size_t shift) ETL_NOEXCEPT |
operator_shift_right | |
static ETL_CONSTEXPR14 bool | operator_equality (const_pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t) ETL_NOEXCEPT |
operator_equality | |
template<typename TElementType > | |
static ETL_CONSTEXPR14 void | initialise (pointer pbuffer, size_t, unsigned long long value) ETL_NOEXCEPT |
Initialise from an unsigned long long. | |
static ETL_CONSTEXPR14 void | swap (pointer lhs_pbuffer, pointer rhs_pbuffer, size_t) ETL_NOEXCEPT |
swap | |
Additional Inherited Members | |
![]() | |
typedef TElement | element_type |
typedef TElement * | pointer |
typedef const TElement * | const_pointer |
typedef size_t | size_type |
![]() | |
static ETL_CONSTANT size_t | npos = etl::integral_limits<size_t>::max |
static ETL_CONSTANT size_t | Bits_Per_Element = etl::integral_limits<TElement>::bits |
static ETL_CONSTANT TElement | All_Set_Element = etl::integral_limits<TElement>::max |
static ETL_CONSTANT TElement | All_Clear_Element = element_type(0) |
|
inlinestatic |
Finds the next bit in the specified state.
state | The state to search for. |
position | The position to start from. |
|
inlinestatic |
operator and AND lhs and rhs and put the result in lhs
|
inlinestatic |
operator assignment Assigns rhs to lhs
|
inlinestatic |
operator ~ NOT the value in the buffer
|
inlinestatic |
operator or OR lhs and rhs and put the result in lhs
|
inlinestatic |
operator xor XOR lhs and rhs and put the result in lhs
|
inlinestatic |
Tests a bit at a position. Positions greater than the number of configured bits will return false.
class etl::bitset_impl< TElement, etl::bitset_storage_model::Multi > |
The implementation class for multi element etl::bitset
Static Public Member Functions | |
static ETL_CONSTEXPR14 bool | test (const_pointer pbuffer, size_t position) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 size_t | count (const_pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
Count the number of bits set. | |
static ETL_CONSTEXPR14 bool | all (const_pointer pbuffer, size_t number_of_elements, element_type top_mask) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 bool | none (const_pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
Are none of the bits set? | |
static ETL_CONSTEXPR14 bool | any (const_pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
Are any of the bits set? | |
static ETL_CONSTEXPR14 void | set_all (pointer pbuffer, size_t number_of_elements, element_type top_mask) ETL_NOEXCEPT |
Set all bits. | |
static ETL_CONSTEXPR14 void | set_position (pointer pbuffer, size_t position, bool value=true) ETL_NOEXCEPT |
Set the bit at the position. | |
template<size_t Position> | |
static ETL_CONSTEXPR14 void | set_position (pointer pbuffer, bool value=true) |
Set the bit at the position. | |
template<size_t Position, bool Value> | |
static ETL_CONSTEXPR14 void | set_position (pointer pbuffer) |
Set the bit at the position. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char *text) ETL_NOEXCEPT |
Set from a string. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const wchar_t *text) ETL_NOEXCEPT |
Set from a wide string. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char16_t *text) ETL_NOEXCEPT |
Set from a u16 string. | |
static ETL_CONSTEXPR14 void | from_string (pointer pbuffer, size_t number_of_elements, size_t total_bits, const char32_t *text) ETL_NOEXCEPT |
Set from a u32 string. | |
static ETL_CONSTEXPR14 void | reset_all (pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
Reset all of the bits. | |
static ETL_CONSTEXPR14 void | reset_position (pointer pbuffer, size_t position) ETL_NOEXCEPT |
Reset the bit at the position. | |
template<typename T > | |
static ETL_CONSTEXPR14 T | value (const_pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
Get as a value. | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::make_unsigned< T >::type | extract_from_multiple_elements (const element_type *pbuffer, int element_index, size_t active_bits_in_msb, size_t length) ETL_NOEXCEPT |
Extract an value from multiple elements. | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::make_unsigned< T >::type | extract_from_buffer (const_pointer pbuffer, size_t position, size_t length) ETL_NOEXCEPT |
template<typename T , size_t Position, size_t Length> | |
static ETL_CONSTEXPR14 etl::enable_if< value_is_in_one_element< Position, Length, Bits_Per_Element >::value, typenameetl::make_unsigned< T >::type >::type | extract_from_buffer (const_pointer pbuffer) |
template<typename T , size_t Position, size_t Length> | |
static ETL_CONSTEXPR14 etl::enable_if<!value_is_in_one_element< Position, Length, Bits_Per_Element >::value, typenameetl::make_unsigned< T >::type >::type | extract_from_buffer (const_pointer pbuffer) |
template<typename T > | |
static ETL_CONSTEXPR14 T | extract (const_pointer pbuffer, size_t position, size_t length=etl::integral_limits< T >::bits) |
Extract an integral value from an arbitrary position and length. | |
template<typename T , size_t Position, size_t Length> | |
static ETL_CONSTEXPR14 T | extract (const_pointer pbuffer) |
Extract an integral value from an arbitrary position and length. | |
static ETL_CONSTEXPR14 void | flip_all (pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
Flip all of the bits. | |
static ETL_CONSTEXPR14 void | flip_position (pointer pbuffer, size_t position) ETL_NOEXCEPT |
Flip the bit at the position. | |
static ETL_CONSTEXPR14 size_t | find_next (const_pointer pbuffer, size_t number_of_elements, size_t total_bits, bool state, size_t position) ETL_NOEXCEPT |
template<typename TString > | |
static ETL_CONSTEXPR14 TString | to_string (const_pointer pbuffer, size_t active_bits, typename TString::value_type zero, typename TString::value_type one) |
Returns a string representing the bitset. | |
static ETL_CONSTEXPR14 void | operator_assignment (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
operator assignment | |
static ETL_CONSTEXPR14 void | operator_and (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
operator and | |
static ETL_CONSTEXPR14 void | operator_or (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
operator or | |
static ETL_CONSTEXPR14 void | operator_xor (pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
operator xor | |
static ETL_CONSTEXPR14 void | operator_not (pointer pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
operator not | |
static ETL_CONSTEXPR14 void | operator_shift_left (pointer pbuffer, size_t number_of_elements, size_t active_bits, size_t shift) ETL_NOEXCEPT |
operator_shift_left | |
static ETL_CONSTEXPR14 void | operator_shift_right (pointer pbuffer, size_t number_of_elements, size_t active_bits, size_t shift) ETL_NOEXCEPT |
operator_shift_right | |
static ETL_CONSTEXPR14 bool | operator_equality (const_pointer lhs_pbuffer, const_pointer rhs_pbuffer, size_t number_of_elements) ETL_NOEXCEPT |
operator_equality | |
template<typename TElementType > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::integral_limits< TElementType >::bits==etl::integral_limits< unsignedlonglong >::bits, void >::type | initialise (pointer pbuffer, size_t number_of_elements, unsigned long long value) ETL_NOEXCEPT |
template<typename TElementType > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::integral_limits< TElementType >::bits!=etl::integral_limits< unsignedlonglong >::bits, void >::type | initialise (pointer pbuffer, size_t number_of_elements, unsigned long long value) ETL_NOEXCEPT |
static ETL_CONSTEXPR14 void | swap (pointer pbuffer1, pointer pbuffer2, size_t number_of_elements) |
Swap bitset buffers. | |
Additional Inherited Members | |
![]() | |
typedef TElement | element_type |
typedef TElement * | pointer |
typedef const TElement * | const_pointer |
typedef size_t | size_type |
![]() | |
static ETL_CONSTANT size_t | npos = etl::integral_limits<size_t>::max |
static ETL_CONSTANT size_t | Bits_Per_Element = etl::integral_limits<TElement>::bits |
static ETL_CONSTANT TElement | All_Set_Element = etl::integral_limits<TElement>::max |
static ETL_CONSTANT TElement | All_Clear_Element = element_type(0) |
|
inlinestatic |
Extract an integral value when the value fits in one element. Compile time position and length.
|
inlinestatic |
Extract an integral value when the value spans more than one element. Compile time position and length.
|
inlinestatic |
Extract an integral value from an arbitrary position and length. Run time position and length.
|
inlinestatic |
Finds the next bit in the specified state.
state | The state to search for. |
position | The position to start from. |
|
inlinestatic |
Initialise from an unsigned long long. Enabled if the number of bits in the element equals the number of bits in an unsigned long long.
|
inlinestatic |
Initialise from an unsigned long long. Enabled if the number of bits in the element doesn't equal the number of bits in an unsigned long long.
|
inlinestatic |
Tests a bit at a position. Positions greater than the number of configured bits will return false.
bool etl::operator!= | ( | const bitset< MaxN > & | lhs, |
const bitset< MaxN > & | rhs | ||
) |
operator !=
ETL_CONSTEXPR14 bool operator!= | ( | const etl::bitset< Active_Bits, TElement > & | lhs, |
const etl::bitset< Active_Bits, TElement > & | rhs | ||
) |
operator !=
ETL_CONSTEXPR14 bool operator!= | ( | const etl::bitset< Active_Bits, TElement > & | lhs, |
const etl::bitset_ext< Active_Bits, TElement > & | rhs | ||
) |
operator != bitset compared with bitset_ext, same element types.
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator!= | ( | const etl::bitset< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset< Active_Bits, TRhsElement > & | rhs | ||
) |
operator != bitset Different element types
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator!= | ( | const etl::bitset< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset_ext< Active_Bits, TRhsElement > & | rhs | ||
) |
operator != bitset compared with bitset_ext, different element types.
ETL_CONSTEXPR14 bool operator!= | ( | const etl::bitset_ext< Active_Bits, TElement > & | lhs, |
const etl::bitset< Active_Bits, TElement > & | rhs | ||
) |
operator != bitset_ext compared with bitset, same element types.
ETL_CONSTEXPR14 bool operator!= | ( | const etl::bitset_ext< Active_Bits, TElement > & | lhs, |
const etl::bitset_ext< Active_Bits, TElement > & | rhs | ||
) |
operator !=
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator!= | ( | const etl::bitset_ext< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset< Active_Bits, TRhsElement > & | rhs | ||
) |
operator != bitset_ext compared with bitset, different element types.
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator!= | ( | const etl::bitset_ext< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset_ext< Active_Bits, TRhsElement > & | rhs | ||
) |
operator != bitset_ext Different element types
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator& | ( | const bitset< Active_Bits, TElement > & | lhs, |
const bitset< Active_Bits, TElement > & | rhs | ||
) |
operator &
bitset< MaxN > etl::operator& | ( | const bitset< MaxN > & | lhs, |
const bitset< MaxN > & | rhs | ||
) |
operator &
ETL_CONSTEXPR14 bool operator== | ( | const etl::bitset< Active_Bits, TElement > & | lhs, |
const etl::bitset_ext< Active_Bits, TElement > & | rhs | ||
) |
operator == bitset compared with bitset_ext, same element types.
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator== | ( | const etl::bitset< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset< Active_Bits, TRhsElement > & | rhs | ||
) |
operator == bitset Different element types
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator== | ( | const etl::bitset< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset_ext< Active_Bits, TRhsElement > & | rhs | ||
) |
operator == bitset compared with bitset_ext, different element types.
ETL_CONSTEXPR14 bool operator== | ( | const etl::bitset_ext< Active_Bits, TElement > & | lhs, |
const etl::bitset< Active_Bits, TElement > & | rhs | ||
) |
operator == bitset_ext compared with bitset, same element types.
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator== | ( | const etl::bitset_ext< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset< Active_Bits, TRhsElement > & | rhs | ||
) |
operator == bitset_ext compared with bitset, different element types.
ETL_CONSTEXPR14 etl::enable_if<!etl::is_same< TLhsElement, TRhsElement >::value, bool >::type operator== | ( | const etl::bitset_ext< Active_Bits, TLhsElement > & | lhs, |
const etl::bitset_ext< Active_Bits, TRhsElement > & | rhs | ||
) |
operator == bitset_ext Different element types
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator^ | ( | const bitset< Active_Bits, TElement > & | lhs, |
const bitset< Active_Bits, TElement > & | rhs | ||
) |
operator ^
bitset< MaxN > etl::operator^ | ( | const bitset< MaxN > & | lhs, |
const bitset< MaxN > & | rhs | ||
) |
operator ^
ETL_CONSTEXPR14 bitset< Active_Bits > etl::operator| | ( | const bitset< Active_Bits, TElement > & | lhs, |
const bitset< Active_Bits, TElement > & | rhs | ||
) |
operator |