xecs.xecs.ArrayViewIndices#

class xecs.xecs.ArrayViewIndices#

Bases: object

Indices into the component pool which form the array view.

Methods

spawn

Add new indices to self.

with_capacity

Construct a new, emtpy set of indices with a given capacity.

spawn(num)#

Add new indices to self.

Parameters:

num (int) – The number of new indices to add.

Returns:

The newly added indices are returned.

Return type:

ArrayViewIndices

static with_capacity(capacity)#

Construct a new, emtpy set of indices with a given capacity.

Parameters:

capacity (int) – The amount of indices which can be held without reallocating.

Returns:

The new indices.

Return type:

ArrayViewIndices