plugify 1.0.0.0
|
A handle class for the Method
structure.
More...
#include <method.hpp>
Public Member Functions | |
std::string_view | GetName () const noexcept |
Retrieves the method name. | |
std::string_view | GetFunctionName () const noexcept |
Retrieves the function name of the method. | |
std::string_view | GetCallingConvention () const noexcept |
Retrieves the calling convention of the method. | |
std::span< const PropertyHandle > | GetParamTypes () const noexcept |
Retrieves the parameter types for the method. | |
PropertyHandle | GetReturnType () const noexcept |
Retrieves the return type of the method. | |
uint8_t | GetVarIndex () const noexcept |
Retrieves the variable index for the method. | |
MethodHandle | FindPrototype (std::string_view name) const noexcept |
Attempts to find a prototype method by its name in the current method's parameters or return type. | |
![]() | |
Handle () noexcept | |
Default constructor. Initializes the handle with a null pointer. | |
Handle (const Method &impl) noexcept | |
Constructs a Handle object from an instance of type T. | |
Handle (const Handle &)=default | |
Copy constructor. Creates a new Handle object from another Handle object. | |
Handle (Handle &&)=default | |
Move constructor. Transfers ownership from another Handle object. | |
auto | operator<=> (const Handle &) const=default |
Comparison operator (<=>) for comparing two Handle objects. | |
Handle & | operator= (const Handle &) &=default |
Copy assignment operator. Copies the handle from another Handle object. | |
Handle & | operator= (const Handle &) &&=delete |
Copy assignment operator for rvalue references is deleted. | |
Handle & | operator= (Handle &&) &=default |
Move assignment operator. Transfers ownership from another Handle object. | |
Handle & | operator= (Handle &&) &&=delete |
Move assignment operator for rvalue references is deleted. | |
operator bool () const noexcept | |
Explicit conversion operator to bool, indicating if the pointer is non-zero. | |
operator uintptr_t () const noexcept | |
Converts the Handle object to a uintptr_t. | |
operator void * () const noexcept | |
Converts the Handle object to a void pointer. | |
Additional Inherited Members | |
![]() | |
const Method * | _impl |
A pointer to the referenced implementation of type T. | |
A handle class for the Method
structure.
Definition at line 105 of file method.hpp.
|
noexcept |
Attempts to find a prototype method by its name in the current method's parameters or return type.
This method searches through the parameter types (paramTypes
) and return type (retType
) of the current method to find a method prototype with the given name. The search is recursive, meaning it will also look into the prototypes of parameter and return types if they themselves have prototypes.
name | The name of the prototype method to search for. |
MethodHandle
containing the found prototype if a method with the specified name exists, orMethodHandle
if no matching prototype is found.Example usage:
|
noexcept |
Retrieves the calling convention of the method.
|
noexcept |
Retrieves the function name of the method.
|
noexcept |
Retrieves the method name.
|
noexcept |
Retrieves the parameter types for the method.
PropertyRef
objects representing the parameter types.
|
noexcept |
Retrieves the return type of the method.
PropertyRef
representing the return type of the method.
|
noexcept |
Retrieves the variable index for the method.