Path: /sdk/add_on/weakref/
The weakref
type is a template type for holding weak references to objects, i.e. the references that will not keep the referred object alive.
The type is registered with RegisterScriptWeakRef(asIScriptEngine*)
.
- See also
- Weak references
Public C++ interface
class CScriptWeakRef
{
public:
CScriptWeakRef(const CScriptWeakRef &other);
~CScriptWeakRef();
CScriptWeakRef &operator=(const CScriptWeakRef &other);
bool operator==(const CScriptWeakRef &o) const;
bool operator!=(const CScriptWeakRef &o) const;
CScriptWeakRef &Set(void *newRef);
void *Get() const;
bool Equals(void *ref) const;
};
The interface for describing types This interface is used to describe the types in the script engine.
Definition: angelscript.h:3735
Public script interface
- See also
- weakref in the script language