Ref

Ref-counted container for Reference types

Constructors

this
this(T other)

Construct from other reference

this
this(R other)
Undocumented in source.
this
this(R other)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Alias This

refPayload

Members

Aliases

_self
alias _self = _reference
Undocumented in source.
opCast
alias opCast(T : bool) = isValid
Undocumented in source.

Functions

_reference
GodotClass!T _reference()
Undocumented in source. Be warned that the author may not have intended to support it.
as
Ref!U as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
GodotObject as()
Undocumented in source. Be warned that the author may not have intended to support it.
isNull
bool isNull()
Undocumented in source. Be warned that the author may not have intended to support it.
isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Ref opAssign(T other)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Ref opAssign(R other)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Ref opAssign(R other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(R other)
Undocumented in source. Be warned that the author may not have intended to support it.
refPayload
T refPayload()

Returns the reference without allowing it to escape the calling scope.

unref
void unref()
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

as
template as(R)
Undocumented in source.
opCast
template opCast(R)
Undocumented in source.

Variables

_reference
T _reference;
Undocumented in source.
_self
T _self;
Undocumented in source.

Meta