
##########
IndexedSet
##########

.. js:class:: Animation.IndexedSet

   Provides the functionality of a ``Set`` with the addition of a monotonically-increasing index associated with each element.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~Animation.IndexedSet.constructor`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~Animation.IndexedSet.add`
   * :js:meth:`~Animation.IndexedSet.getIndex`
   * :js:meth:`~Animation.IndexedSet.isEmpty`
   * :js:meth:`~Animation.IndexedSet.toArray`
   
   




Constructors
============

.. js:method:: Animation.IndexedSet.constructor

   .. rst-class:: sig-pretty-signature
   
      | IndexedSet(): :js:class:`IndexedSet <Animation.IndexedSet>`\ <T>
   
   **Returns**\ : :js:class:`IndexedSet <Animation.IndexedSet>`\ <T>
   





Methods
=======

.. js:method:: Animation.IndexedSet.add

   .. rst-class:: sig-pretty-signature
   
      | add(**value**\ : T): *void*
   
   **Parameters**
   
      **value**\ : T
   
   
   **Returns**\ : *void*
   



.. js:method:: Animation.IndexedSet.getIndex

   .. rst-class:: sig-pretty-signature
   
      | getIndex(**value**\ : T): *number*
   
   **Parameters**
   
      **value**\ : T
   
   
   **Returns**\ : *number*
   



.. js:method:: Animation.IndexedSet.isEmpty

   .. rst-class:: sig-pretty-signature
   
      | isEmpty(): *boolean*
   
   **Returns**\ : *boolean*
   



.. js:method:: Animation.IndexedSet.toArray

   .. rst-class:: sig-pretty-signature
   
      | toArray(): T[]
   
   Returns an array containing each element of the set placed at its assigned index.
   
   **Returns**\ : T[]
   





