|
|
ETL_CONSTEXPR14 | bitset () ETL_NOEXCEPT |
| | Default constructor.
|
| |
|
ETL_CONSTEXPR14 | bitset (const bitset< Active_Bits, TElement, true > &other) ETL_NOEXCEPT |
| | Copy constructor.
|
| |
|
ETL_CONSTEXPR14 | bitset (unsigned long long value) ETL_NOEXCEPT |
| | Construct from a value.
|
| |
|
ETL_CONSTEXPR14 | bitset (const char *text) ETL_NOEXCEPT |
| | Construct from a string.
|
| |
|
ETL_CONSTEXPR14 | bitset (const wchar_t *text) ETL_NOEXCEPT |
| | Construct from a string.
|
| |
|
ETL_CONSTEXPR14 | bitset (const char16_t *text) ETL_NOEXCEPT |
| | Construct from a string.
|
| |
|
ETL_CONSTEXPR14 | bitset (const char32_t *text) ETL_NOEXCEPT |
| | Construct from a string.
|
| |
|
ETL_CONSTEXPR14 bitset & | operator= (const bitset< Active_Bits, TElement, true > &other) ETL_NOEXCEPT |
| | Assignment operator.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | set () ETL_NOEXCEPT |
| | Set all of the bits.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | set (element_type value) ETL_NOEXCEPT |
| | Set from a value.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | set (size_t position, bool value=true) |
| | Set the bit at the position.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | set (const char *text) ETL_NOEXCEPT |
| | Set from a string.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | set (const wchar_t *text) ETL_NOEXCEPT |
| | Set from a string.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | set (const char16_t *text) ETL_NOEXCEPT |
| | Set from a string.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | set (const char32_t *text) ETL_NOEXCEPT |
| | Set from a string.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | from_string (const char *text) ETL_NOEXCEPT |
| | Set from a string.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | from_string (const wchar_t *text) ETL_NOEXCEPT |
| | Set from a wide string.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | from_string (const char16_t *text) ETL_NOEXCEPT |
| | Set from a u16 string.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | 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.
|
| |
|
ETL_CONSTEXPR14 unsigned long | to_ulong () const ETL_NOEXCEPT |
| | Get as an unsigned long.
|
| |
|
ETL_CONSTEXPR14 unsigned long long | to_ullong () const ETL_NOEXCEPT |
| | Get as an unsigned long long.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | reset () ETL_NOEXCEPT |
| | Reset all of the bits.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | reset (size_t position) |
| | Reset the bit at the position.
|
| |
| ETL_CONSTEXPR14 bool | test (size_t position) const |
| |
|
ETL_CONSTEXPR14 size_t | size () const ETL_NOEXCEPT |
| | The number of bits in the bitset.
|
| |
|
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 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 bits set?
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | flip () ETL_NOEXCEPT |
| | Flip all of the bits.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | flip_bits (element_type mask=etl::integral_limits< element_type >::max) ETL_NOEXCEPT |
| | Flip some of the bits.
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | 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, true > | operator& (const bitset< Active_Bits, TElement, true > &other) const ETL_NOEXCEPT |
| | operator &
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | operator&= (const bitset< Active_Bits, TElement, true > &other) ETL_NOEXCEPT |
| | operator &=
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > | operator| (const bitset< Active_Bits, TElement, true > &other) const ETL_NOEXCEPT |
| | operator |
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | operator|= (const bitset< Active_Bits, TElement, true > &other) ETL_NOEXCEPT |
| | operator |=
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > | operator^ (const bitset< Active_Bits, TElement, true > &other) const ETL_NOEXCEPT |
| | operator ^
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | operator^= (const bitset< Active_Bits, TElement, true > &other) ETL_NOEXCEPT |
| | operator ^=
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > | operator~ () const ETL_NOEXCEPT |
| | operator ~
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > | operator<< (size_t shift) const ETL_NOEXCEPT |
| | operator <<
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | operator<<= (size_t shift) ETL_NOEXCEPT |
| | operator <<=
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > | operator>> (size_t shift) const ETL_NOEXCEPT |
| | operator >>
|
| |
|
ETL_CONSTEXPR14 bitset< Active_Bits, TElement, true > & | operator>>= (size_t shift) ETL_NOEXCEPT |
| | operator >>=
|
| |
|
ETL_CONSTEXPR14 void | swap (etl::bitset< Active_Bits, TElement, true > &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< Active_Bits, TElement, true >
Specialisation that uses a single element if the element type is the same size as the number of active bits.