Lines Matching refs:node
25 $node = FFI::addr(self::$ffi->new("dlist", false));
26 $node->data = 0;
27 $node->next = $node;
28 $node->prev = $node;
29 $this->root = $node;
34 $node = $root->next;
35 while ($node != $root) {
36 $prev = $node;
37 $node = $node->next;
44 $node = FFI::addr(self::$ffi->new("dlist", false));
45 $node->data = $data;
46 $node->next = $this->root;
47 $node->prev = $this->root->prev;
48 $this->root->prev->next = $node;
49 $this->root->prev = $node;
54 $node = $root->next;
55 while ($node != $root) {
56 if ($node->data == $data) {
57 $node->prev->next = $node->next;
58 $node->next->prev = $node->prev;
59 FFI::free($node);
62 $node = $node->next;
70 $node = $root->next;
71 while ($node != $root) {
77 echo $node->data;
78 $node = $node->next;