PoolArray

Copy-on-write array for some Godot types, allocated with a memory pool.

Constructors

this
this(Array arr)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Aliases

Read
alias Read = Access!false
Write
alias Write = Access!true
append
alias append = pushBack
append_array
deprecated alias append_array = pushBack
Undocumented in source.
length
alias length = size
Undocumented in source.
opDollar
alias opDollar = size
Undocumented in source.

Functions

empty
bool empty()
insert
void insert(size_t idx, String data)
Undocumented in source. Be warned that the author may not have intended to support it.
insert
void insert(size_t idx, T data)
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.
opAssign
PoolArray opAssign(PoolArray other)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
PoolArray opBinary(PoolArray other)
opIndex
String opIndex(size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
T opIndex(size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(String data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(T data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
Range opSlice(size_t start, size_t end)
opSlice
Range opSlice()
pushBack
void pushBack(PoolArray arr)
pushBack
void pushBack(String data)
Undocumented in source. Be warned that the author may not have intended to support it.
pushBack
void pushBack(T data)
Undocumented in source. Be warned that the author may not have intended to support it.
read
Read read()

Lock the array for read-only access to the underlying memory. This is faster than using opIndex, which locks each time it's called.

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.
set
void set(size_t idx, String data)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(size_t idx, T data)
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.
write
Write write()

Lock the array for write access to the underlying memory. This is faster than using opIndexAssign, which locks each time it's called.

Structs

Access
struct Access(bool write = false)

Read/Write access locks with RAII.

Range
struct Range

Slice-like view of the PoolArray.

Templates

opOpAssign
template opOpAssign(string op)

Meta