Array

Generic array, contains several elements of any type, accessible by numerical index starting at 0. Negative indices can be used to count from the right, like in Python. Arrays are always passed by reference.

Constructors

this
this()
Undocumented in source.
this
this(typeof(null) n)
Undocumented in source.
this
this(PoolByteArray a)
Undocumented in source.
this
this(PoolIntArray a)
Undocumented in source.
this
this(PoolRealArray a)
Undocumented in source.
this
this(PoolStringArray a)
Undocumented in source.
this
this(PoolVector2Array a)
Undocumented in source.
this
this(PoolVector3Array a)
Undocumented in source.
this
this(PoolColorArray a)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Aliases

length
alias length = size
Undocumented in source.
opOpAssign
alias opOpAssign(string op : "~") = append
Undocumented in source.

Functions

append
void append(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
back
Variant back()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
count
size_t count(Variant v)
Undocumented in source. Be warned that the author may not have intended to support it.
dup
Array dup()

Allocate a new separate copy of the Array

empty
bool empty()
Undocumented in source. Be warned that the author may not have intended to support it.
erase
void erase(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
find
int find(T what, size_t from)
Undocumented in source. Be warned that the author may not have intended to support it.
findLast
int findLast(T what)
Undocumented in source. Be warned that the author may not have intended to support it.
front
Variant front()
Undocumented in source. Be warned that the author may not have intended to support it.
has
bool has(T what)
Undocumented in source. Be warned that the author may not have intended to support it.
hash
uint hash()
Undocumented in source. Be warned that the author may not have intended to support it.
insert
void insert(size_t pos, T value)
Undocumented in source. Be warned that the author may not have intended to support it.
invert
void invert()
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(size_t, ref Variant) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(size_t, const(Variant)) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(ref Variant) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(const(Variant)) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Array opAssign(Array other)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
Array opAssign(typeof(null) n)

Assigning null empties the Array variable, but unlike clear, does not destroy the original memory unless it was the only remaining reference.

opIndex
inout(Variant) opIndex(size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(T value, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
popBack
Variant popBack()
Undocumented in source. Be warned that the author may not have intended to support it.
popFront
Variant popFront()
Undocumented in source. Be warned that the author may not have intended to support it.
pushBack
void pushBack(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
pushFront
void pushFront(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
resize
void resize(size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
rfind
int rfind(T what, size_t from)
Undocumented in source. Be warned that the author may not have intended to support it.
size
size_t size()
Undocumented in source. Be warned that the author may not have intended to support it.
sort
void sort()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

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

Variables

_godot_array
godot_array _godot_array;
Undocumented in source.

Meta