|
|
| ETL_STATIC_ASSERT (etl::is_unsigned< TElement >::value, "The element type must be unsigned") |
|
ETL_CONSTEXPR14 | bitset_ext (element_type *pbuffer_) |
| | Default constructor.
|
|
ETL_CONSTEXPR14 | bitset_ext (buffer_type &buffer) |
| | Default constructor.
|
|
ETL_CONSTEXPR14 | bitset_ext (const bitset_ext< Active_Bits, TElement > &other, element_type *pbuffer_) |
| | Construct copy.
|
|
ETL_CONSTEXPR14 | bitset_ext (const bitset_ext< Active_Bits, TElement > &other, buffer_type &buffer) ETL_NOEXCEPT |
| | Construct copy.
|
|
ETL_CONSTEXPR14 | bitset_ext (const bitset_ext< Active_Bits, TElement > &other) ETL_NOEXCEPT ETL_DELETE |
| | Copy Constructor (Deleted).
|
|
ETL_CONSTEXPR14 | bitset_ext (unsigned long long value, element_type *pbuffer_) |
| | Construct from a value.
|
|
template<typename TValue> |
| ETL_CONSTEXPR14 | bitset_ext (TValue value, buffer_type &buffer, typename etl::enable_if< is_integral< TValue >::value >::type *=0) ETL_NOEXCEPT |
| | Construct from a value.
|
|
template<typename TPString> |
| ETL_CONSTEXPR14 | bitset_ext (TPString text, element_type *pbuffer_, typename etl::enable_if< is_same< TPString, const char * >::value >::type *=0) |
| | Construct from a string.
|
|
template<typename TPString> |
| ETL_CONSTEXPR14 | bitset_ext (TPString text, buffer_type &buffer, typename etl::enable_if< is_same< TPString, const char * >::value >::type *=0) ETL_NOEXCEPT |
| | Construct from a string.
|
|
template<typename TPString> |
| ETL_CONSTEXPR14 | bitset_ext (TPString text, element_type *pbuffer_, typename etl::enable_if< is_same< TPString, const wchar_t * >::value >::type *=0) |
| | Construct from a string.
|
|
template<typename TPString> |
| ETL_CONSTEXPR14 | bitset_ext (TPString text, buffer_type &buffer, 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_ext (TPString text, element_type *pbuffer_, typename etl::enable_if< is_same< TPString, const char16_t * >::value >::type *=0) |
| | Construct from a string.
|
|
template<typename TPString> |
| ETL_CONSTEXPR14 | bitset_ext (TPString text, buffer_type &buffer, 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_ext (TPString text, element_type *pbuffer_, typename etl::enable_if< is_same< TPString, const char32_t * >::value >::type *=0) |
| | Construct from a string.
|
|
template<typename TPString> |
| ETL_CONSTEXPR14 | bitset_ext (TPString text, buffer_type &buffer, typename etl::enable_if< is_same< TPString, const char32_t * >::value >::type *=0) ETL_NOEXCEPT |
| | Construct from a string.
|
|
ETL_CONSTEXPR14 bitset_ext & | operator= (const bitset_ext< Active_Bits, TElement > &other) ETL_NOEXCEPT |
| | Assignment operator.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | set () ETL_NOEXCEPT |
| | Set all of the bits.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | set (size_t position, bool value=true) |
| | Set the bit at the position.
|
|
template<size_t Position> |
| ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | set (bool value=true) |
| | Set the bit at the position.
|
|
template<size_t Position, bool Value> |
| ETL_CONSTEXPR14 bitset_ext< 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_ext< 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_ext< 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_ext< 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_ext< Active_Bits, TElement > & >::type | set (TPString text) ETL_NOEXCEPT |
| | Set from a char32 string.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | from_string (const char *text) ETL_NOEXCEPT |
| | Set from a string.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | from_string (const wchar_t *text) ETL_NOEXCEPT |
| | Set from a wide string.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | from_string (const char16_t *text) ETL_NOEXCEPT |
| | Set from a u16 string.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | from_string (const char32_t *text) ETL_NOEXCEPT |
| | Set from a u32 string.
|
|
template<typename T> |
| ETL_CONSTEXPR14 T | 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) |
| 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_ext< Active_Bits, TElement > & | reset () ETL_NOEXCEPT |
| | Reset all of the bits.
|
|
ETL_CONSTEXPR14 bitset_ext< 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_ext< Active_Bits, TElement > & | flip () ETL_NOEXCEPT |
| | Flip all of the bits.
|
|
ETL_CONSTEXPR14 bitset_ext< 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_ext< Active_Bits, TElement > & | operator&= (const bitset_ext< Active_Bits, TElement > &other) ETL_NOEXCEPT |
| | operator &=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | operator|= (const bitset_ext< Active_Bits, TElement > &other) ETL_NOEXCEPT |
| | operator |=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | operator^= (const bitset_ext< Active_Bits, TElement > &other) ETL_NOEXCEPT |
| | operator ^=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | operator<<= (size_t shift) ETL_NOEXCEPT |
| | operator <<=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, TElement > & | operator>>= (size_t shift) ETL_NOEXCEPT |
| | operator >>=
|
|
ETL_CONSTEXPR14 void | swap (etl::bitset_ext< Active_Bits, TElement > &other) ETL_NOEXCEPT |
| | swap
|
| ETL_CONSTEXPR14 span_type | span () ETL_NOEXCEPT |
| ETL_CONSTEXPR14 const_span_type | span () const ETL_NOEXCEPT |
template<size_t Active_Bits, typename TElement>
class etl::bitset_ext< Active_Bits, TElement >
A bitset that uses externally declared storage.