|
| Types ()=default |
| Constructor of the Types object, nothing for initialization.
|
|
| ~Types ()=default |
| Destructor of Types.
|
|
void | parse_types (stream::KunaiStream *stream, Strings *strings, std::uint32_t number_of_types, std::uint32_t types_offset) |
| Parse the types and store them in the class.
|
|
const std::vector< dvmtype_t > & | get_ordered_types () const |
| Get a reference to the vector with all the types.
|
|
const std::unordered_map< std::uint32_t, DVMType * > & | get_types_by_id () const |
| Get the types with the map of string id - type.
|
|
DVMType * | get_type_by_id (std::uint32_t type_id) |
| Get a type given its string ID.
|
|
DVMType * | get_type_from_order (std::uint32_t pos) |
| Get a type given position.
|
|
std::uint32_t | get_number_of_types () const |
| Get the number of types stored.
|
|
std::uint32_t | get_offset () const |
| Get the offset where types are stored.
|
|
void | to_xml (std::ofstream &xml_file) |
| Dump the types to an xml file.
|
|
◆ get_number_of_types()
std::uint32_t KUNAI::DEX::Types::get_number_of_types |
( |
| ) |
const |
|
inline |
Get the number of types stored.
- Returns
- number of types
◆ get_offset()
std::uint32_t KUNAI::DEX::Types::get_offset |
( |
| ) |
const |
|
inline |
Get the offset where types are stored.
- Returns
- offset where types are
◆ get_ordered_types()
const std::vector< dvmtype_t > & KUNAI::DEX::Types::get_ordered_types |
( |
| ) |
const |
|
inline |
Get a reference to the vector with all the types.
- Returns
- constant reference to vector
◆ get_type_by_id()
DVMType * KUNAI::DEX::Types::get_type_by_id |
( |
std::uint32_t |
type_id | ) |
|
Get a type given its string ID.
- Parameters
-
- Returns
- pointer to the type
◆ get_type_from_order()
DVMType * KUNAI::DEX::Types::get_type_from_order |
( |
std::uint32_t |
pos | ) |
|
Get a type given position.
- Parameters
-
- Returns
- pointer to the type
◆ get_types_by_id()
const std::unordered_map< std::uint32_t, DVMType * > & KUNAI::DEX::Types::get_types_by_id |
( |
| ) |
const |
|
inline |
Get the types with the map of string id - type.
- Returns
- constant reference to map
◆ parse_types()
void KUNAI::DEX::Types::parse_types |
( |
stream::KunaiStream * |
stream, |
|
|
Strings * |
strings, |
|
|
std::uint32_t |
number_of_types, |
|
|
std::uint32_t |
types_offset |
|
) |
| |
Parse the types and store them in the class.
- Parameters
-
stream | stream with the DEX file |
strings | strings to retrieve the type |
number_of_types | number of types to retrieve |
types_offset | offset where to read the types |
◆ to_xml()
void KUNAI::DEX::Types::to_xml |
( |
std::ofstream & |
xml_file | ) |
|
Dump the types to an xml file.
- Parameters
-
xml_file | file where to dump content |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Types & |
entry |
|
) |
| |
|
friend |
Pretty printer for Types.
- Parameters
-
os | stream where to print it |
entry | entry to print |
- Returns
The documentation for this class was generated from the following file: