A value that is separated into bitfields, typically bit flags.
More...
#include <dumper.h>
|
|
| BitFieldDisplay (unsigned width) |
| |
|
std::shared_ptr< BitFieldDisplay > | AddBitField (unsigned offset, unsigned length, std::shared_ptr< Display< offset_t > > display, bool optional_field) |
| |
|
std::shared_ptr< BitFieldDisplay > | AddBitField (unsigned offset, unsigned length, std::string label, std::shared_ptr< Display< offset_t > > display, bool optional_field=false) |
| |
|
void | DisplayValue (Dumper &dump, std::tuple< offset_t > values) override |
| |
|
| HexDisplay (unsigned width) |
| |
|
void | DisplayValue (Dumper &dump, std::tuple< offset_t > values) override |
| |
|
virtual bool | IsMissing (std::tuple< Ts... > &values) |
| | Returns true if the specified value is such that it should not be displayed.
|
| |
|
virtual void | DisplayValue (Dumper &dump, std::tuple< Ts... > values)=0 |
| | Prints the value through the Dumper, different types of fields can be displayed in different ways.
|
| |
|
| static std::shared_ptr< BitFieldDisplay > | Make (unsigned width=8) |
| | Create a bit field display.
|
| |
| static std::shared_ptr< HexDisplay > | Make (unsigned width=8) |
| | Creates a hexadecimal display.
|
| |
|
|
std::map< unsigned, std::unique_ptr< BitField > > | bitfields |
| |
|
unsigned | width |
| |
A value that is separated into bitfields, typically bit flags.
◆ Make()
| static std::shared_ptr< BitFieldDisplay > Dumper::BitFieldDisplay::Make |
( |
unsigned | width = 8 | ) |
|
|
inlinestatic |
Create a bit field display.
- Parameters
-
| [in] | width | The number of digits to use for displaying the value as a hexadecimal |
- Returns
- A bit field display
The documentation for this class was generated from the following files:
- src/dumper/dumper.h
- src/dumper/dumper.cc