Namespace endstone::detail¶
Namespace List > endstone > detail
Public Attributes¶
| Type | Name |
|---|---|
| Return(*)(Arg...) | fp_cast Gets the original member function pointer from a detour member function pointer (const, no ref-qualifier) |
Public Functions¶
| Type | Name |
|---|---|
| void * | fp_cast (Return(*)(Args...) fp) Cast a function pointer to void pointer. |
| void * | fp_cast (Return(Class::*)(Args...) fp) Cast a member function pointer to void pointer. |
| Server & | getServer () |
Public Attributes Documentation¶
variable fp_cast¶
Gets the original member function pointer from a detour member function pointer (const, no ref-qualifier)
Return(Class::*)(Arg...) endstone::detail::fp_cast(Return(Class::*fp)(Arg...) const, void *address);
Public Functions Documentation¶
function fp_cast¶
Cast a function pointer to void pointer.
template<typename Return, typename... Args>
void * endstone::detail::fp_cast (
Return (*)(Args...) fp
)
Template parameters:
ReturnThe return type of the function.ArgsThe argument types of the function.
Parameters:
fpThe function pointer to be casted.
Returns:
A void pointer to the function.
function fp_cast¶
Cast a member function pointer to void pointer.
template<typename Return, typename Class, typename... Args>
void * endstone::detail::fp_cast (
Return (Class::*)(Args...) fp
)
Cast a constant member function pointer to void pointer.
Template parameters:
ReturnThe return type of the member function.ClassThe class type that the member function belongs to.ArgsThe argument types of the member function.
Parameters:
fpPointer to the member function to be casted.
Returns:
A void pointer to the member function.
Template parameters:
ReturnThe return type of the constant member function.ClassThe class type that the constant member function belongs to.ArgsThe argument types of the constant member function.
Parameters:
fpPointer to the constant member function to be casted.
Returns:
A void pointer to the constant member function.
function getServer¶
Gets the current Server singleton
Returns:
Server instance being run
The documentation for this class was generated from the following file include/endstone/detail.h