<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.spl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'spl.datastructures.php',
    1 => 'Datastructures',
    2 => 'Datastructures',
  ),
  'up' => 
  array (
    0 => 'book.spl.php',
    1 => 'SPL',
  ),
  'prev' => 
  array (
    0 => 'splsubject.notify.php',
    1 => 'SplSubject::notify',
  ),
  'next' => 
  array (
    0 => 'class.spldoublylinkedlist.php',
    1 => 'SplDoublyLinkedList',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/spl/datastructures.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/spl.datastructures.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="spl.datastructures" class="part">
 <h1 class="title">Datastructures</h1>
<h2>Inhaltsverzeichnis</h2><ul class="chunklist chunklist_part"><li><a href="class.spldoublylinkedlist.php">SplDoublyLinkedList</a></li><li><a href="class.splstack.php">SplStack</a></li><li><a href="class.splqueue.php">SplQueue</a></li><li><a href="class.splheap.php">SplHeap</a></li><li><a href="class.splmaxheap.php">SplMaxHeap</a></li><li><a href="class.splminheap.php">SplMinHeap</a></li><li><a href="class.splpriorityqueue.php">SplPriorityQueue</a></li><li><a href="class.splfixedarray.php">SplFixedArray</a></li><li><a href="class.arrayobject.php">ArrayObject</a></li><li><a href="class.splobjectstorage.php">SplObjectStorage</a></li></ul>


 <div class="partintro">
  <p class="para">
   SPL provides a set of standard datastructures. They are grouped here by their 
   underlying implementation which usually defines their general field of 
   application.
  </p>

  <div class="section">
   <h2 class="title">Doubly Linked Lists</h2>

   <p class="para">
    A Doubly Linked List (DLL) is a list of nodes linked in both directions to 
    each other. Iterator&#039;s operations, access to both ends, addition or 
    removal of nodes have a cost of O(1) when the underlying structure is a DLL.
    It hence provides a decent implementation for stacks and queues.
   </p>

   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara"><span class="classname"><a href="class.spldoublylinkedlist.php" class="classname">SplDoublyLinkedList</a></span></span>
     <ul class="itemizedlist">
      <li class="listitem"><span class="simpara"><span class="classname"><a href="class.splstack.php" class="classname">SplStack</a></span></span></li>
      <li class="listitem"><span class="simpara"><span class="classname"><a href="class.splqueue.php" class="classname">SplQueue</a></span></span></li>
     </ul>
    </li>
   </ul>

  </div>
  <div class="section">
   <h2 class="title">Heaps</h2>

   <p class="para">
    Heaps are tree-like structures that follow the heap-property: each node
    is greater than or equal to its children, when compared using the 
    implemented compare method which is global to the heap.
   </p>

   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara"><span class="classname"><a href="class.splheap.php" class="classname">SplHeap</a></span></span>
     <ul class="itemizedlist">
      <li class="listitem"><span class="simpara"><span class="classname"><a href="class.splmaxheap.php" class="classname">SplMaxHeap</a></span></span></li>
      <li class="listitem"><span class="simpara"><span class="classname"><a href="class.splminheap.php" class="classname">SplMinHeap</a></span></span></li>
     </ul>
    </li>
    <li class="listitem">
     <span class="simpara"><span class="classname"><a href="class.splpriorityqueue.php" class="classname">SplPriorityQueue</a></span></span>
    </li>
   </ul>

  </div>

  <div class="section">
   <h2 class="title">Arrays</h2>

   <p class="para">
    Arrays are structures that store the data in a contiguous way,
    accessible via indexes.
   </p>
   <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
    <span class="simpara">
     Do not confuse this with PHP&#039;s native <span class="type"><a href="language.types.array.php" class="type array">array</a></span> type.
     PHP arrays are in reality ordered hashtables.
     However, SPL provides the <span class="classname"><a href="class.arrayobject.php" class="classname">ArrayObject</a></span> class
     to wrap PHP arrays into an object.
    </span>
   </p></blockquote>

   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara"><span class="classname"><a href="class.splfixedarray.php" class="classname">SplFixedArray</a></span></span>
    </li>
   </ul>

  </div>

  <div class="section">
   <h2 class="title">Map</h2>

   <p class="para">
    A map is a datastructure holding key-value pairs. PHP arrays can be seen as maps from integers/strings to values. SPL provides a map from objects to data. This map can also be used as an object set.
   </p>

   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara"><span class="classname"><a href="class.splobjectstorage.php" class="classname">SplObjectStorage</a></span></span>
    </li>
   </ul>

  </div>
 </div>

 




 




 





 




 




 




 





 




 







 





</div>
<?php manual_footer($setup); ?>