dao::script::Owned
class
An engine structure that your plugin owns, such as one popped off the stack.
When the Owned is destroyed, it has the engine destroy the structure. Move-only.
Declared in dao/Script.h.
Functions
get()
T * get() const
Returns the structure, or null if there is none.
operator bool()
operator bool() const
Returns whether there is a structure.
operator->()
T * operator->() const
operator=()
Owned & operator=(const Owned &)=delete
operator=()
Owned & operator=(Owned &&other) noexcept
Owned()
Owned()=default
Owned()
Owned(const Owned &)=delete
Owned()
Owned(Owned &&other) noexcept
Owned()
Owned(T *structure)
~Owned()
~Owned()