ADTF
3.18.2
|
Address info class This class can be used to query information about a memory address (e.g. More...
Public Member Functions | |
template<typename ReturnType , typename... Args> | |
AddressInfo (ReturnType(*const function)(Args...)) noexcept | |
Constructor for function addresses. | |
template<typename T > | |
AddressInfo (const T &variable) noexcept | |
Constructor for global or static variables addresses. More... | |
filesystem::Path | getFilePath () const |
Get the fully qualified file path to the executable or shared library the address is located in. More... | |
Private Member Functions | |
template<typename Return , typename... Args> | |
const_handle_t | toDataPointer (Return(*const function)(Args...)) noexcept |
Casts a function pointer to a data pointer. More... | |
Private Attributes | |
const_handle_t | _address |
Address info class This class can be used to query information about a memory address (e.g.
the file path of the binary where the address is located in)
Definition at line 26 of file address_info.h.
|
inlineexplicitnoexcept |
Constructor for global or static variables addresses.
variable
must not be a heap or stack variable! Definition at line 56 of file address_info.h.
filesystem::Path getFilePath | ( | ) | const |
Get the fully qualified file path to the executable or shared library the address is located in.
|
inlineprivatenoexcept |
Casts a function pointer to a data pointer.
Definition at line 82 of file address_info.h.
Referenced by AddressInfo::AddressInfo().