|
SDL3pp
A slim C++ wrapper for SDL3
|
Reference for SharedObject. More...


Public Member Functions | |
| SharedObjectRef (SharedObjectRaw resource) noexcept | |
| Constructs from raw SharedObject. More... | |
| constexpr | SharedObjectRef (const SharedObject &resource) noexcept |
| Constructs from SharedObject. More... | |
| constexpr | SharedObjectRef (SharedObject &&resource) noexcept |
| Constructs from SharedObject. More... | |
| constexpr | SharedObjectRef (const SharedObjectRef &other) noexcept |
| Copy constructor. | |
| constexpr | SharedObjectRef (SharedObjectRef &&other) noexcept |
| Move constructor. | |
| ~SharedObjectRef () | |
| Destructor. | |
| constexpr SharedObjectRef & | operator= (const SharedObjectRef &other) noexcept=default |
| Assignment operator. | |
| constexpr | operator SharedObjectRaw () const noexcept |
| Converts to SharedObjectRaw. | |
| constexpr | SharedObject (std::nullptr_t=nullptr) noexcept |
| Default ctor. | |
| constexpr | SharedObject (const SharedObjectRaw resource) noexcept |
| Constructs from SharedObjectRef. More... | |
| constexpr | SharedObject (const SharedObject &other) noexcept=default |
| Copy constructor. | |
| constexpr | SharedObject (SharedObject &&other) noexcept |
| Move constructor. | |
| constexpr | SharedObject (const SharedObjectRef &other)=delete |
| constexpr | SharedObject (SharedObjectRef &&other)=delete |
| SharedObject (StringParam sofile) | |
| Dynamically load a shared object. More... | |
Public Member Functions inherited from SDL::SharedObject | |
| constexpr | SharedObject (std::nullptr_t=nullptr) noexcept |
| Default ctor. | |
| constexpr | SharedObject (const SharedObjectRaw resource) noexcept |
| Constructs from SharedObjectRef. More... | |
| constexpr | SharedObject (SharedObject &&other) noexcept |
| Move constructor. | |
| constexpr | SharedObject (const SharedObjectRef &other)=delete |
| constexpr | SharedObject (SharedObjectRef &&other)=delete |
| SharedObject (StringParam sofile) | |
| Dynamically load a shared object. More... | |
| ~SharedObject () | |
| Destructor. | |
| constexpr SharedObject & | operator= (SharedObject &&other) noexcept |
| Assignment operator. | |
| constexpr SharedObjectRaw | get () const noexcept |
| Retrieves underlying SharedObjectRaw. | |
| constexpr SharedObjectRaw | release () noexcept |
| Retrieves underlying SharedObjectRaw and clear this. | |
| constexpr auto | operator<=> (const SharedObject &other) const noexcept=default |
| Comparison. | |
| constexpr | operator bool () const noexcept |
| Converts to bool. | |
| 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from SDL::SharedObject | |
| constexpr | SharedObject (const SharedObject &other) noexcept=default |
| Copy constructor. | |
| constexpr SharedObject & | operator= (const SharedObject &other) noexcept=default |
| Assignment operator. | |
This does not take ownership!
|
inlinenoexcept |
| resource | a SharedObjectRaw. |
This does not takes ownership!
|
inlineconstexprnoexcept |
| resource | a SharedObject. |
This does not takes ownership!
|
inlineconstexprnoexcept |
| resource | a SharedObject. |
This will release the ownership from resource!
|
inlineexplicitconstexprnoexcept |
| 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. |