#include <bit_number.hpp>
Public Types | |
typedef T | value_type |
Public Member Functions | |
BitNumber (T value) | |
BitNumber & | operator= (T value) |
T | raw () const |
bool | operator< (BitNumber other) const |
bool | operator== (BitNumber other) const |
Static Public Attributes | |
static constexpr T | mask = (1 << WIDTH) - 1 |
static constexpr std::size_t | bits = WIDTH |
Private Attributes | |
T | mValue |
BitNumber restricts the value range by the given width
T | underlying integral type |
WIDTH | number of bits used to represent a number |
Definition at line 17 of file bit_number.hpp.
typedef T vanetza::BitNumber< T, WIDTH >::value_type |
underlying (integral) value type
Definition at line 27 of file bit_number.hpp.
|
inline |
Definition at line 29 of file bit_number.hpp.
|
inline |
Definition at line 30 of file bit_number.hpp.
|
inline |
Definition at line 34 of file bit_number.hpp.
|
inline |
Definition at line 31 of file bit_number.hpp.
|
inline |
Definition at line 35 of file bit_number.hpp.
|
inline |
Definition at line 32 of file bit_number.hpp.
|
staticconstexpr |
number of bits used
Definition at line 26 of file bit_number.hpp.
|
staticconstexpr |
excessive bits are masked
Definition at line 25 of file bit_number.hpp.
|
private |
Definition at line 38 of file bit_number.hpp.