SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::SharedObjectRef Struct Reference

Semi-safe reference for SharedObject.

Inheritance diagram for SDL::SharedObjectRef:
Inheritance graph
[legend]
Collaboration diagram for SDL::SharedObjectRef:
Collaboration graph
[legend]

Public Member Functions

 SharedObjectRef (SharedObjectParam resource)
 Constructs from SharedObjectParam. More...
 
 SharedObjectRef (const SharedObjectRef &other)
 Copy constructor.
 
 ~SharedObjectRef ()
 Destructor.
 
- Public Member Functions inherited from SDL::SharedObject
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.
 
SharedObjectoperator= (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...
 

Constructor & Destructor Documentation

◆ SharedObjectRef()

SDL::SharedObjectRef::SharedObjectRef ( SharedObjectParam  resource)
inline
Parameters
resourcea SharedObjectRaw or SharedObject.

This does not takes ownership!


The documentation for this struct was generated from the following file: