Kyoto Cabinet
|
Cursor to indicate a record. More...
#include <kcpolydb.h>
Public Member Functions | |
Cursor (PolyDB *db) | |
Constructor. | |
virtual | ~Cursor () |
Destructor. | |
bool | accept (Visitor *visitor, bool writable=true, bool step=false) |
Accept a visitor to the current record. | |
bool | jump () |
Jump the cursor to the first record for forward scan. | |
bool | jump (const char *kbuf, size_t ksiz) |
Jump the cursor to a record for forward scan. | |
bool | jump (const std::string &key) |
Jump the cursor to a record for forward scan. | |
bool | jump_back () |
Jump the cursor to the last record for backward scan. | |
bool | jump_back (const char *kbuf, size_t ksiz) |
Jump the cursor to a record for backward scan. | |
bool | jump_back (const std::string &key) |
Jump the cursor to a record for backward scan. | |
bool | step () |
Step the cursor to the next record. | |
bool | step_back () |
Step the cursor to the previous record. | |
PolyDB * | db () |
Get the database object. | |
Friends | |
class | PolyDB |
Cursor to indicate a record.
kyotocabinet::PolyDB::Cursor::Cursor | ( | PolyDB * | db | ) | [explicit] |
Constructor.
db | the container database object. |
virtual kyotocabinet::PolyDB::Cursor::~Cursor | ( | ) | [virtual] |
Destructor.
Reimplemented from kyotocabinet::BasicDB::Cursor.
bool kyotocabinet::PolyDB::Cursor::accept | ( | Visitor * | visitor, |
bool | writable = true , |
||
bool | step = false |
||
) | [virtual] |
Accept a visitor to the current record.
visitor | a visitor object. |
writable | true for writable operation, or false for read-only operation. |
step | true to move the cursor to the next record, or false for no move. |
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::jump | ( | ) | [virtual] |
Jump the cursor to the first record for forward scan.
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::jump | ( | const char * | kbuf, |
size_t | ksiz | ||
) | [virtual] |
Jump the cursor to a record for forward scan.
kbuf | the pointer to the key region. |
ksiz | the size of the key region. |
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::jump | ( | const std::string & | key | ) | [virtual] |
Jump the cursor to a record for forward scan.
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::jump_back | ( | ) | [virtual] |
Jump the cursor to the last record for backward scan.
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::jump_back | ( | const char * | kbuf, |
size_t | ksiz | ||
) | [virtual] |
Jump the cursor to a record for backward scan.
kbuf | the pointer to the key region. |
ksiz | the size of the key region. |
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::jump_back | ( | const std::string & | key | ) | [virtual] |
Jump the cursor to a record for backward scan.
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::step | ( | ) | [virtual] |
Step the cursor to the next record.
Implements kyotocabinet::DB::Cursor.
bool kyotocabinet::PolyDB::Cursor::step_back | ( | ) | [virtual] |
Step the cursor to the previous record.
Implements kyotocabinet::DB::Cursor.
PolyDB* kyotocabinet::PolyDB::Cursor::db | ( | ) | [virtual] |