|
gem5
v22.0.0.2
|
Wrapper that groups a few flag bits under the same undelying container. More...
#include <flags.hh>
Public Types | |
| typedef T | Type |
Public Member Functions | |
| Flags (Type flags=0) | |
| Initialize flags with a given value. More... | |
| operator const Type () const | |
| const Flags< T > & | operator= (T flags) |
| bool | isSet (Type mask) const |
| Verifies whether any bit matching the given mask is set. More... | |
| bool | allSet (Type mask) const |
| Verifies whether no bits matching the given mask are set. More... | |
| bool | noneSet (Type mask) const |
| Verifies whether no bits matching the given mask are set. More... | |
| void | clear () |
| Clear all flag's bits. More... | |
| void | clear (Type mask) |
| Clear all flag's bits matching the given mask. More... | |
| void | set (Type mask) |
| Set all flag's bits matching the given mask. More... | |
| void | set (Type mask, bool condition) |
| Conditionally set or clear some bits of the flag, given a mask. More... | |
| void | replace (Type flags, Type mask) |
| Replace the contents of the bits matching the mask with the corresponding bits in the provided flags. More... | |
Private Attributes | |
| T | _flags |
| The undelying container of the flags' bits. More... | |
Wrapper that groups a few flag bits under the same undelying container.
| T | The type of the underlying container. Must be an unsigned integer. |
| typedef T gem5::Flags< T >::Type |
|
private |
The undelying container of the flags' bits.
Definition at line 47 of file flags.hh.
Referenced by gem5::Flags< FlagsType >::allSet(), gem5::Flags< FlagsType >::clear(), gem5::Flags< FlagsType >::isSet(), gem5::Flags< FlagsType >::noneSet(), gem5::Flags< FlagsType >::operator const Type(), gem5::Flags< FlagsType >::operator=(), gem5::Flags< FlagsType >::replace(), and gem5::Flags< FlagsType >::set().