scc  2022.4.0
SystemC components library
util::BitFieldMember< T, Offset, Bits > Struct Template Reference

bit field element More...

#include <bit_field.h>

Public Member Functions

maximum () const
 
one () const
 
 operator T () const
 
BitFieldMemberoperator= (T v)
 
BitFieldMemberoperator+= (T v)
 
BitFieldMemberoperator-= (T v)
 
BitFieldMemberoperator++ ()
 
BitFieldMember operator++ (int)
 
BitFieldMemberoperator-- ()
 
BitFieldMember operator-- (int)
 

Public Attributes

value
 

Static Public Attributes

static constexpr T Maximum = (T(1) << Bits) - 1
 
static constexpr T Mask = Maximum << Offset
 

Detailed Description

template<typename T, int Offset, int Bits>
struct util::BitFieldMember< T, Offset, Bits >

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.


The documentation for this struct was generated from the following file: