Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
caffe2::db::LMDBCursor Class Reference
Inheritance diagram for caffe2::db::LMDBCursor:
caffe2::db::Cursor

Public Member Functions

 LMDBCursor (MDB_env *mdb_env)
 
void Seek (const string &key) override
 Seek to a specific key (or if the key does not exist, seek to the immediate next). More...
 
bool SupportsSeek () override
 
void SeekToFirst () override
 Seek to the first key in the database.
 
void Next () override
 Go to the next location in the database.
 
string key () override
 Returns the current key.
 
string value () override
 Returns the current value.
 
bool Valid () override
 Returns whether the current location is valid - for example, if we have reached the end of the database, return false.
 
- Public Member Functions inherited from caffe2::db::Cursor
 DISABLE_COPY_AND_ASSIGN (Cursor)
 

Detailed Description

Definition at line 19 of file lmdb.cc.

Member Function Documentation

◆ Seek()

void caffe2::db::LMDBCursor::Seek ( const string &  key)
inlineoverridevirtual

Seek to a specific key (or if the key does not exist, seek to the immediate next).

This is optional for dbs, and in default, SupportsSeek() returns false meaning that the db cursor does not support it.

Implements caffe2::db::Cursor.

Definition at line 34 of file lmdb.cc.


The documentation for this class was generated from the following file: