| Spldoublyasklist implements Iterator, ArrayAccess, Countable { Public _ construct (void) Public void add (mixed $ index, mixed $ newval) // The header node of the double-stranded table Public mixed top (void) // Tail node of the double-stranded table Public mixed bottom (void) // Number of double join Table Elements Public int count (void) // Check whether the double-stranded table is empty Public bool isEmpty (void) // Index of the current node Public mixed key (void) // Move to the previous record Public void prev (void) // Move to the next record Public void next (void) // Current record Public mixed current (void) // Point the pointer to the beginning of the iteration Public void rewind (void) // Check whether there are nodes in the double-stranded table Public bool valid (void) // Specify whether a node exists at the index Public bool offsetExists (mixed $ index) // Obtain the node value at the specified index Public mixed offsetGet (mixed $ index) // Set the value at the specified index Public void offsetSet (mixed $ index, mixed $ newval) // Delete the node at the specified index Public void offsetUnset (mixed $ index) // Elements are displayed at the end of the double-stranded table. Public mixed pop (void) // Add elements to the end of the double-stranded table Public void push (mixed $ value) // Serialized Storage Public string serialize (void) // Deserialization Public void unserialize (string $ serialized) // Set the iteration Mode Public void setIteratorMode (int $ mode) // Obtain the iterative mode spldoublyshortlist: IT_MODE_LIFO (Stack style) spldoublyshortlist: IT_MODE_FIFO (Queue style) Public int getIteratorMode (void) // Remove the element from the header of the double-stranded table Public mixed shift (void) // Add an element to the header of the double-stranded table Public void unshift (mixed $ value) } |