Files
godot-docs/classes/class_intarray.rst
T
Rémi Verschelde 1b5e8c18fd classref: Order everything alphabetically
And sync with current 2.0.x sources.
2016-06-25 02:10:54 +02:00

70 lines
2.8 KiB
ReStructuredText

.. 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_IntArray:
IntArray
========
**Category:** Built-In Types
Brief Description
-----------------
Integer Array.
Member Functions
----------------
+----------------------------------+-------------------------------------------------------------------------------------------------------+
| :ref:`IntArray<class_intarray>` | :ref:`IntArray<class_IntArray_IntArray>` **(** :ref:`Array<class_array>` from **)** |
+----------------------------------+-------------------------------------------------------------------------------------------------------+
| void | :ref:`push_back<class_IntArray_push_back>` **(** :ref:`int<class_int>` integer **)** |
+----------------------------------+-------------------------------------------------------------------------------------------------------+
| void | :ref:`resize<class_IntArray_resize>` **(** :ref:`int<class_int>` idx **)** |
+----------------------------------+-------------------------------------------------------------------------------------------------------+
| void | :ref:`set<class_IntArray_set>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` integer **)** |
+----------------------------------+-------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`size<class_IntArray_size>` **(** **)** |
+----------------------------------+-------------------------------------------------------------------------------------------------------+
Description
-----------
Integer Array. Array of integers. Can only contain integers. Optimized for memory usage, can't fragment the memory.
Member Function Description
---------------------------
.. _class_IntArray_IntArray:
- :ref:`IntArray<class_intarray>` **IntArray** **(** :ref:`Array<class_array>` from **)**
Create from a generic array.
.. _class_IntArray_push_back:
- void **push_back** **(** :ref:`int<class_int>` integer **)**
Append a value to the array.
.. _class_IntArray_resize:
- void **resize** **(** :ref:`int<class_int>` idx **)**
Set the size of the :ref:`IntArray<class_intarray>`. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array.
.. _class_IntArray_set:
- void **set** **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` integer **)**
Change the int at the given index.
.. _class_IntArray_size:
- :ref:`int<class_int>` **size** **(** **)**
Return the array size.