Class Innodb::List::ListCursor
In: lib/innodb/list.rb
Parent: Object

A list iteration cursor used primarily by the Innodb::List cursor method implicitly. Keeps its own state for iterating through lists efficiently.

Methods

each_node   new   next_node   node   prev_node  

Public Class methods

Public Instance methods

Return the next entry from the current position, and advance the cursor position to the returned entry. If the cursor is currently nil, return the first entry in the list and adjust the cursor position to that entry.

Return the previous entry from the current position, and advance the cursor position to the returned entry. If the cursor is currently nil, return the last entry in the list and adjust the cursor position to that entry.

[Validate]