|
|
| ETL_STATIC_ASSERT (etl::is_unsigned< unsigned char >::value, "The element type must be unsigned") |
|
ETL_CONSTEXPR14 | bitset_ext (element_type *pbuffer_) |
| | Default constructor.
|
|
ETL_CONSTEXPR14 bitset_ext & | operator= (const bitset_ext< Active_Bits, unsigned char > &other) ETL_NOEXCEPT |
| | Assignment operator.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, unsigned char > & | set () ETL_NOEXCEPT |
| | Set all of the bits.
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, unsigned char > & | from_string (const char *text) ETL_NOEXCEPT |
| | Set from a string.
|
|
ETL_CONSTEXPR14 T | value () const ETL_NOEXCEPT |
| | Get as an integral value.
|
| ETL_CONSTEXPR14 T | extract (size_t position, size_t length=etl::integral_limits< T >::bits) |
|
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, unsigned char > & | reset () ETL_NOEXCEPT |
| | Reset all of the bits.
|
| ETL_CONSTEXPR14 bool | test (size_t position) 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 | none () const ETL_NOEXCEPT |
| | Are none of the bits set?
|
|
ETL_CONSTEXPR14 bool | any () const ETL_NOEXCEPT |
| | Are any of the bits set?
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, unsigned char > & | flip () ETL_NOEXCEPT |
| | Flip all of the bits.
|
|
ETL_CONSTEXPR14 bool | operator[] (size_t position) const ETL_NOEXCEPT |
| | Read [] operator.
|
|
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, unsigned char > & | operator&= (const bitset_ext< Active_Bits, unsigned char > &other) ETL_NOEXCEPT |
| | operator &=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, unsigned char > & | operator|= (const bitset_ext< Active_Bits, unsigned char > &other) ETL_NOEXCEPT |
| | operator |=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, unsigned char > & | operator^= (const bitset_ext< Active_Bits, unsigned char > &other) ETL_NOEXCEPT |
| | operator ^=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, unsigned char > & | operator<<= (size_t shift) ETL_NOEXCEPT |
| | operator <<=
|
|
ETL_CONSTEXPR14 bitset_ext< Active_Bits, unsigned char > & | operator>>= (size_t shift) ETL_NOEXCEPT |
| | operator >>=
|
|
ETL_CONSTEXPR14 void | swap (etl::bitset_ext< Active_Bits, unsigned char > &other) ETL_NOEXCEPT |
| | swap
|
| ETL_CONSTEXPR14 span_type | span () ETL_NOEXCEPT |
|
|
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 element_type | top_mask () ETL_NOEXCEPT |
| | The mask for the msb element.
|
|
static ETL_CONSTEXPR size_t | bits_per_element () ETL_NOEXCEPT |
| | The number of bits in an 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 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 |
|
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) |
|
static ETL_CONSTANT size_t | Number_Of_Elements |
|
static ETL_CONSTANT size_t | Size |
|
static ETL_CONSTANT size_t | Allocated_Bits |
|
static ETL_CONSTANT etl::bitset_storage_model | Storage_Model |
|
static ETL_CONSTANT unsigned char | Top_Mask |
|
static ETL_CONSTANT size_t | npos |
|
static ETL_CONSTANT size_t | Bits_Per_Element |
|
static ETL_CONSTANT unsigned char | All_Set_Element |
|
static ETL_CONSTANT unsigned char | All_Clear_Element |
Specialisation for zero bits.