コード例 #1
0
ファイル: IntersectIterator.php プロジェクト: gunjiro/ginq
 protected function fetch()
 {
     while ($this->it0->valid()) {
         $this->v = $this->it0->current();
         $this->k = $this->it0->key();
         if ($this->potentials->remove($this->v)) {
             return;
         } else {
             $this->it0->next();
         }
     }
 }
コード例 #2
0
ファイル: ExceptIterator.php プロジェクト: gunjiro/ginq
 protected function fetch()
 {
     while ($this->it0->valid()) {
         $this->v = $this->it0->current();
         $this->k = $this->it0->key();
         if ($this->masked->add($this->v)) {
             return;
         } else {
             $this->it0->next();
         }
     }
 }
コード例 #3
0
ファイル: DistinctIterator.php プロジェクト: gunjiro/ginq
 private function fetch()
 {
     $this->k = $this->it->key();
     $this->v = $this->it->current();
     return $this->seen->add($this->v);
 }