![]() |
Spicy
|
#include <bitfield.h>
Public Types | |
| using | value_type = Tuple< Ts... > |
Public Member Functions | |
| Bitfield (value_type v, const hilti::rt::TypeInfo *ti) | |
| Bitfield (const hilti::rt::TypeInfo *ti=nullptr) | |
| template<typename... Us> | |
| Bitfield (Bitfield< Us... > other) | |
Public Attributes | |
| value_type | value = value_type() |
| const hilti::rt::TypeInfo * | ti |
A bitfield is just a type wrapper around a tuple of the corresponding field values (including the hidden additional element storing the bitfield's original integer value). We wrap it so that we can customize the printing.
|
inline |
Construct a bitfield from a tuple.
|
inline |
Construct an entirely unset bitfield.
|
inline |
Support instantiation from another bitfield type as long as all types convert over.