Class for data types represented as a set of bit flags or discrete symbolic constants.
More...
#include <type_utils.hpp>
|
| std::map< uint64_t, std::string > | flag_map |
| | Map linking raw integer flag values to their string names (e.g., 0x1 to "MAP_SHARED").
|
| |
Class for data types represented as a set of bit flags or discrete symbolic constants.
◆ FlagType()
| arion_type::FlagType::FlagType |
( |
std::string |
name, |
|
|
std::map< uint64_t, std::string > |
flag_map |
|
) |
| |
|
inlineprotected |
Builder for FlagType instances.
- Parameters
-
| [in] | name | The display name of the type. |
| [in] | flag_map | The map of value-to-string mappings. |
◆ str()
| std::string arion_type::FlagType::str |
( |
std::shared_ptr< arion::Arion > |
arion, |
|
|
uint64_t |
val |
|
) |
| |
|
overridevirtual |
Converts a raw value into a string representation, combining known flags (e.g., "FLAG_A|FLAG_B").
- Parameters
-
| [in] | arion | Shared pointer to the Arion instance. |
| [in] | val | The raw 64-bit flag value. |
- Returns
- The formatted string representation of the flags.
Reimplemented from arion_type::KernelType.
◆ flag_map
| std::map<uint64_t, std::string> arion_type::FlagType::flag_map |
|
private |
Map linking raw integer flag values to their string names (e.g., 0x1 to "MAP_SHARED").
The documentation for this class was generated from the following file: