#include <chert_cursor.h>


Public Member Functions | |
| MutableChertCursor (ChertTable *B_) | |
| Create a mutable cursor attached to a Btree. | |
| bool | del () |
| Delete the current key/tag pair, leaving the cursor on the next entry. | |
Definition at line 245 of file chert_cursor.h.
| MutableChertCursor::MutableChertCursor | ( | ChertTable * | B_ | ) | [inline] |
Create a mutable cursor attached to a Btree.
A mutable cursor allows the items to be deleted.
Creates a cursor, which can be used to remember a position inside the B-tree. The position is simply the item (key and tag) to which the cursor points. A cursor is either positioned or unpositioned, and is initially unpositioned.
NB: You must not try to use a MutableChertCursor after the Btree it is attached to is destroyed. It's safe to destroy the MutableChertCursor after the Btree though, you just may not use the MutableChertCursor.
Definition at line 260 of file chert_cursor.h.
| bool MutableChertCursor::del | ( | ) |
Delete the current key/tag pair, leaving the cursor on the next entry.
Definition at line 315 of file chert_cursor.cc.
References Assert, ChertCursor::B, ChertCursor::current_key, ChertCursor::find_entry_ge(), ChertCursor::is_after_end, ChertCursor::is_positioned, and ChertCursor::next().
Referenced by ChertPostListTable::merge_changes().