Dictionary.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Dictionary" category="Built-In Types" version="3.1">
  3. <brief_description>
  4. Dictionary type.
  5. </brief_description>
  6. <description>
  7. Dictionary type. Associative container which contains values referenced by unique keys. Dictionaries are always passed by reference.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="clear">
  15. <description>
  16. Clear the dictionary, removing all key/value pairs.
  17. </description>
  18. </method>
  19. <method name="duplicate">
  20. <return type="Dictionary">
  21. </return>
  22. <argument index="0" name="deep" type="bool" default="False">
  23. </argument>
  24. <description>
  25. Creates a copy of the dictionary, and returns it.
  26. </description>
  27. </method>
  28. <method name="empty">
  29. <return type="bool">
  30. </return>
  31. <description>
  32. Return true if the dictionary is empty.
  33. </description>
  34. </method>
  35. <method name="erase">
  36. <return type="bool">
  37. </return>
  38. <argument index="0" name="key" type="Variant">
  39. </argument>
  40. <description>
  41. Erase a dictionary key/value pair by key.
  42. </description>
  43. </method>
  44. <method name="has">
  45. <return type="bool">
  46. </return>
  47. <argument index="0" name="key" type="Variant">
  48. </argument>
  49. <description>
  50. Return true if the dictionary has a given key.
  51. </description>
  52. </method>
  53. <method name="has_all">
  54. <return type="bool">
  55. </return>
  56. <argument index="0" name="keys" type="Array">
  57. </argument>
  58. <description>
  59. Return true if the dictionary has all of the keys in the given array.
  60. </description>
  61. </method>
  62. <method name="hash">
  63. <return type="int">
  64. </return>
  65. <description>
  66. Return a hashed integer value representing the dictionary contents.
  67. </description>
  68. </method>
  69. <method name="keys">
  70. <return type="Array">
  71. </return>
  72. <description>
  73. Return the list of keys in the [code]Dictionary[/code].
  74. </description>
  75. </method>
  76. <method name="size">
  77. <return type="int">
  78. </return>
  79. <description>
  80. Return the size of the dictionary (in pairs).
  81. </description>
  82. </method>
  83. <method name="values">
  84. <return type="Array">
  85. </return>
  86. <description>
  87. Return the list of values in the [code]Dictionary[/code].
  88. </description>
  89. </method>
  90. </methods>
  91. <constants>
  92. </constants>
  93. </class>