scc
2022.4.0
SystemC components library
|
bit field element More...
#include <bit_field.h>
Public Member Functions | |
T | maximum () const |
T | one () const |
operator T () const | |
BitFieldMember & | operator= (T v) |
BitFieldMember & | operator+= (T v) |
BitFieldMember & | operator-= (T v) |
BitFieldMember & | operator++ () |
BitFieldMember | operator++ (int) |
BitFieldMember & | operator-- () |
BitFieldMember | operator-- (int) |
Public Attributes | |
T | value |
Static Public Attributes | |
static constexpr T | Maximum = (T(1) << Bits) - 1 |
static constexpr T | Mask = Maximum << Offset |
bit field element
BitFieldMember<>: Used internally by ADD_BITFIELD_MEMBER macro. All members are public to simplify compliance with sections 9.0.7 and 9.5.1 of the C++11 standard, thereby avoiding undefined behavior.
Definition at line 39 of file bit_field.h.