|
SDL3pp
A slim C++ wrapper for SDL3
|
An opaque datatype that represents a loaded shared object. More...

Public Member Functions | |
| constexpr | SharedObject ()=default |
| Default ctor. | |
| constexpr | SharedObject (const SharedObjectRaw resource) |
| Constructs from SharedObjectParam. More... | |
| constexpr | SharedObject (const SharedObject &other)=delete |
| Copy constructor. | |
| constexpr | SharedObject (SharedObject &&other) |
| Move constructor. | |
| constexpr | SharedObject (const SharedObjectRef &other)=delete |
| constexpr | SharedObject (SharedObjectRef &&other)=delete |
| SharedObject (StringParam sofile) | |
| Dynamically load a shared object. More... | |
| ~SharedObject () | |
| Destructor. | |
| SharedObject & | operator= (SharedObject other) |
| Assignment operator. | |
| constexpr SharedObjectRaw | get () const |
| Retrieves underlying SharedObjectRaw. | |
| constexpr SharedObjectRaw | release () |
| Retrieves underlying SharedObjectRaw and clear this. | |
| constexpr auto | operator<=> (const SharedObject &other) const =default |
| Comparison. | |
| constexpr bool | operator== (std::nullptr_t _) const |
| Comparison. | |
| constexpr | operator bool () const |
| Converts to bool. | |
| constexpr | operator SharedObjectParam () const |
| Converts to SharedObjectParam. | |
| void | Unload () |
| Unload a shared object from memory. More... | |
| FunctionPointer | LoadFunction (StringParam name) |
| Look up the address of the named function in a shared object. More... | |
|
inlineexplicitconstexpr |
| resource | a SharedObjectRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.
|
inline |
| sofile | a system-dependent name of the object file. |