class_poolstringarray.rst 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_PoolStringArray:
  4. PoolStringArray
  5. ===============
  6. **Category:** Built-In Types
  7. Brief Description
  8. -----------------
  9. String Array.
  10. Member Functions
  11. ----------------
  12. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  13. | :ref:`PoolStringArray<class_poolstringarray>` | :ref:`PoolStringArray<class_PoolStringArray_PoolStringArray>` **(** :ref:`Array<class_array>` from **)** |
  14. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`append<class_PoolStringArray_append>` **(** :ref:`String<class_string>` string **)** |
  16. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`append_array<class_PoolStringArray_append_array>` **(** :ref:`PoolStringArray<class_poolstringarray>` array **)** |
  18. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`insert<class_PoolStringArray_insert>` **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` string **)** |
  20. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`invert<class_PoolStringArray_invert>` **(** **)** |
  22. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`String<class_string>` | :ref:`join<class_PoolStringArray_join>` **(** :ref:`String<class_string>` string **)** |
  24. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`push_back<class_PoolStringArray_push_back>` **(** :ref:`String<class_string>` string **)** |
  26. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`remove<class_PoolStringArray_remove>` **(** :ref:`int<class_int>` idx **)** |
  28. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`resize<class_PoolStringArray_resize>` **(** :ref:`int<class_int>` idx **)** |
  30. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`set<class_PoolStringArray_set>` **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` string **)** |
  32. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`int<class_int>` | :ref:`size<class_PoolStringArray_size>` **(** **)** |
  34. +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+
  35. Description
  36. -----------
  37. String Array. Array of strings. Can only contain strings. Optimized for memory usage, can't fragment the memory.
  38. Member Function Description
  39. ---------------------------
  40. .. _class_PoolStringArray_PoolStringArray:
  41. - :ref:`PoolStringArray<class_poolstringarray>` **PoolStringArray** **(** :ref:`Array<class_array>` from **)**
  42. Create from a generic array.
  43. .. _class_PoolStringArray_append:
  44. - void **append** **(** :ref:`String<class_string>` string **)**
  45. Append an element at the end of the array (alias of :ref:`push_back<class_PoolStringArray_push_back>`).
  46. .. _class_PoolStringArray_append_array:
  47. - void **append_array** **(** :ref:`PoolStringArray<class_poolstringarray>` array **)**
  48. Append an StringArray at the end of this array.
  49. .. _class_PoolStringArray_insert:
  50. - :ref:`int<class_int>` **insert** **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` string **)**
  51. Insert a new element at a given position in the array. The position must be valid, or at the end of the array (pos==size()).
  52. .. _class_PoolStringArray_invert:
  53. - void **invert** **(** **)**
  54. .. _class_PoolStringArray_join:
  55. - :ref:`String<class_string>` **join** **(** :ref:`String<class_string>` string **)**
  56. Reverse the order of the elements in the array (so first element will now be the last).
  57. .. _class_PoolStringArray_push_back:
  58. - void **push_back** **(** :ref:`String<class_string>` string **)**
  59. Append a string element at end of the array.
  60. .. _class_PoolStringArray_remove:
  61. - void **remove** **(** :ref:`int<class_int>` idx **)**
  62. Remove an element from the array by index.
  63. .. _class_PoolStringArray_resize:
  64. - void **resize** **(** :ref:`int<class_int>` idx **)**
  65. Set the size of the StringArray. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array.
  66. .. _class_PoolStringArray_set:
  67. - void **set** **(** :ref:`int<class_int>` idx, :ref:`String<class_string>` string **)**
  68. Change the :ref:`String<class_string>` at the given index.
  69. .. _class_PoolStringArray_size:
  70. - :ref:`int<class_int>` **size** **(** **)**
  71. Return the size of the array.