Store the information of a ProtoID, this is a string with the return type, the list of parameters and a string with the prototype.
More...
#include <protos.hpp>
Store the information of a ProtoID, this is a string with the return type, the list of parameters and a string with the prototype.
◆ ProtoID()
KUNAI::DEX::ProtoID::ProtoID |
( |
stream::KunaiStream * |
stream, |
|
|
Types * |
types, |
|
|
std::string & |
shorty_idx, |
|
|
std::uint32_t |
return_type_idx, |
|
|
std::uint32_t |
parameters_off |
|
) |
| |
|
inline |
Constructor of a ProtoID, the ProtoID parses its own parameters.
- Parameters
-
stream | stream to read the parameter types ids |
types | types to obtain result and parameter types |
shorty_idx | string with prototype |
return_type_idx | id of the return type |
parameters_off | offset where parameter type ids are stored |
◆ get_parameters() [1/2]
std::vector< DVMType * > & KUNAI::DEX::ProtoID::get_parameters |
( |
| ) |
|
|
inline |
Get a reference to the parameters.
- Returns
- reference to vector with the parameters
◆ get_parameters() [2/2]
const std::vector< DVMType * > & KUNAI::DEX::ProtoID::get_parameters |
( |
| ) |
const |
|
inline |
Get a constant reference to the parameters.
- Returns
- const reference to vector with the parameters
◆ get_return_type() [1/2]
DVMType * KUNAI::DEX::ProtoID::get_return_type |
( |
| ) |
|
|
inline |
Get a reference to the return type.
- Returns
- reference to return type
◆ get_return_type() [2/2]
const DVMType * KUNAI::DEX::ProtoID::get_return_type |
( |
| ) |
const |
|
inline |
Get a constant reference to the return type.
- Returns
- constant reference to return type
◆ get_shorty_idx() [1/2]
std::string & KUNAI::DEX::ProtoID::get_shorty_idx |
( |
| ) |
|
|
inline |
Get a reference to shorty_idx string.
- Returns
- reference to shorty_idx
◆ get_shorty_idx() [2/2]
const std::string & KUNAI::DEX::ProtoID::get_shorty_idx |
( |
| ) |
const |
|
inline |
Get constant reference to shorty_idx string.
- Returns
- constant reference to shorty_idx
The documentation for this class was generated from the following file: