Weak Reference for Script
C++ Interfaces
-
class script_weakref
Public Functions
-
script_weakref() = delete
-
script_weakref(const script_weakref&)
-
script_weakref(asITypeInfo *ti)
-
script_weakref(asITypeInfo *ti, void *ref)
-
~script_weakref()
-
script_weakref &operator=(const script_weakref &other)
-
bool operator==(const script_weakref &rhs) const
-
void reset(void *ref)
-
void *get()
-
bool equals_to(void *ref) const
Checks equality of the referenced object.
-
inline asITypeInfo *referenced_type() const
-
script_weakref() = delete
Example Usage
class test{};
void some_function()
{
test@ t = test();
weakref<test> r(t);
// ...
}