Dictionary.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Dictionary" category="Built-In Types" version="3.0.alpha.custom_build">
  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="empty">
  20. <return type="bool">
  21. </return>
  22. <description>
  23. Return true if the dictionary is empty.
  24. </description>
  25. </method>
  26. <method name="erase">
  27. <argument index="0" name="key" type="var">
  28. </argument>
  29. <description>
  30. Erase a dictionary key/value pair by key.
  31. </description>
  32. </method>
  33. <method name="has">
  34. <return type="bool">
  35. </return>
  36. <argument index="0" name="key" type="var">
  37. </argument>
  38. <description>
  39. Return true if the dictionary has a given key.
  40. </description>
  41. </method>
  42. <method name="has_all">
  43. <return type="bool">
  44. </return>
  45. <argument index="0" name="keys" type="Array">
  46. </argument>
  47. <description>
  48. Return true if the dictionary has all of the keys in the given array.
  49. </description>
  50. </method>
  51. <method name="hash">
  52. <return type="int">
  53. </return>
  54. <description>
  55. Return a hashed integer value representing the dictionary contents.
  56. </description>
  57. </method>
  58. <method name="keys">
  59. <return type="Array">
  60. </return>
  61. <description>
  62. Return the list of keys in the [code]Dictionary[/code].
  63. </description>
  64. </method>
  65. <method name="size">
  66. <return type="int">
  67. </return>
  68. <description>
  69. Return the size of the dictionary (in pairs).
  70. </description>
  71. </method>
  72. <method name="values">
  73. <return type="Array">
  74. </return>
  75. <description>
  76. Return the list of values in the [code]Dictionary[/code].
  77. </description>
  78. </method>
  79. </methods>
  80. <constants>
  81. </constants>
  82. </class>