.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_PoolIntArray: PoolIntArray ============ **Category:** Built-In Types Brief Description ----------------- Integer Array. Member Functions ---------------- +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :ref:`PoolIntArray` | :ref:`PoolIntArray` **(** :ref:`Array` from **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append` **(** :ref:`int` integer **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append_array` **(** :ref:`PoolIntArray` array **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`insert` **(** :ref:`int` idx, :ref:`int` integer **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | void | :ref:`invert` **(** **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_back` **(** :ref:`int` integer **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove` **(** :ref:`int` idx **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | void | :ref:`resize` **(** :ref:`int` idx **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set` **(** :ref:`int` idx, :ref:`int` integer **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`size` **(** **)** | +------------------------------------------+------------------------------------------------------------------------------------------------------------------+ Description ----------- Integer Array. Array of integers. Can only contain integers. Optimized for memory usage, can't fragment the memory. Member Function Description --------------------------- .. _class_PoolIntArray_PoolIntArray: - :ref:`PoolIntArray` **PoolIntArray** **(** :ref:`Array` from **)** Create from a generic array. .. _class_PoolIntArray_append: - void **append** **(** :ref:`int` integer **)** Append an element at the end of the array (alias of :ref:`push_back`). .. _class_PoolIntArray_append_array: - void **append_array** **(** :ref:`PoolIntArray` array **)** Append an :ref:`PoolIntArray` at the end of this array. .. _class_PoolIntArray_insert: - :ref:`int` **insert** **(** :ref:`int` idx, :ref:`int` integer **)** Insert a new int at a given position in the array. The position must be valid, or at the end of the array (pos==size()). .. _class_PoolIntArray_invert: - void **invert** **(** **)** Reverse the order of the elements in the array (so first element will now be the last). .. _class_PoolIntArray_push_back: - void **push_back** **(** :ref:`int` integer **)** Append a value to the array. .. _class_PoolIntArray_remove: - void **remove** **(** :ref:`int` idx **)** Remove an element from the array by index. .. _class_PoolIntArray_resize: - void **resize** **(** :ref:`int` idx **)** Set the size of the :ref:`PoolIntArray`. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array. .. _class_PoolIntArray_set: - void **set** **(** :ref:`int` idx, :ref:`int` integer **)** Change the int at the given index. .. _class_PoolIntArray_size: - :ref:`int` **size** **(** **)** Return the array size.