예제 #1
0
 function __construct(array $storage)
 {
     parent::__construct(new \ArrayIterator($storage));
     $this->size = count($storage);
 }
예제 #2
0
 function __construct(\Iterator $iterator, $n)
 {
     parent::__construct($iterator);
     $this->n = $n;
 }
예제 #3
0
 function __construct(InOrderIterator $iterator, $size)
 {
     parent::__construct($iterator);
     $this->size = $size;
     $this->rewind();
 }
예제 #4
0
 function __construct(\Iterator $iterator, callable $map)
 {
     parent::__construct($iterator);
     $this->mapper = $map;
 }
예제 #5
0
 function __construct(\Iterator $iterator, callable $filter)
 {
     parent::__construct($iterator);
     $this->filter = $filter;
 }
예제 #6
0
 function __construct(\Iterator $iterator, $start, $count)
 {
     parent::__construct($iterator);
     $this->start = $start;
     $this->count = $count;
 }
예제 #7
0
 function __construct(array $array)
 {
     parent::__construct(new \ArrayIterator($array));
     $this->count = count($array);
 }
예제 #8
0
 function __construct(BinaryTreeIterator $iterator, $size)
 {
     parent::__construct(new ValueIterator($iterator));
     $this->size = $size;
     $this->rewind();
 }
예제 #9
0
 function __construct(array $set)
 {
     parent::__construct(new ValueIterator(new \ArrayIterator($set)));
     $this->size = count($set);
     $this->rewind();
 }
예제 #10
0
 function __construct(Vector $vector)
 {
     parent::__construct(new \ArrayIterator($vector->toArray()));
     $this->rewind();
 }