\SplDoublyLinkedList
Synopsis
class SplDoublyLinkedList
implements
Iterator
{
- // methods
- public void __construct()
- public mixed bottom()
- public int count()
- public mixed current()
- public int getIteratorMode()
- public bool isEmpty()
- public mixed key()
- public void next()
- public bool offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public mixed pop()
- public void prev()
- public void push()
- public void rewind()
- public string serialize()
- public void setIteratorMode()
- public mixed shift()
- public mixed top()
- public void unserialize()
- public void unshift()
- public bool valid()
Hierarchy
Methods
public
- __construct() — Constructs a new doubly linked list
- bottom() — Peeks at the node from the beginning of the doubly linked list
- count() — Counts the number of elements in the doubly linked list.
- current() — Return current array entry
- getIteratorMode() — Returns the mode of iteration
- isEmpty() — Checks whether the doubly linked list is empty.
- key() — Return current node index
- next() — Move to next entry
- offsetExists() — Returns whether the requested $index exists
- offsetGet() — Returns the value at the specified $index
- offsetSet() — Sets the value at the specified $index to $newval
- offsetUnset() — Unsets the value at the specified $index
- pop() — Pops a node from the end of the doubly linked list
- prev() — Move to previous entry
- push() — Pushes an element at the end of the doubly linked list
- rewind() — Rewind iterator back to the start
- serialize() — Serializes the storage
- setIteratorMode() — Sets the mode of iteration
- shift() — Shifts a node from the beginning of the doubly linked list
- top() — Peeks at the node from the end of the doubly linked list
- unserialize() — Unserializes the storage
- unshift() — Prepends the doubly linked list with an element
- valid() — Check whether the doubly linked list contains more nodes