A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classlmdb_1_1cursor.html below:

NCBI C++ ToolKit: lmdb::cursor Class Reference

Search Toolkit Book for lmdb::cursor

Resource class for `MDB_cursor*` handles. More...

#include <util/lmdbxx/lmdb++.h>

  cursor (MDB_cursor *const handle) noexcept   Constructor. More...
    cursor (cursor &&other) noexcept   Move constructor. More...
  cursoroperator= (cursor &&other) noexcept   Move assignment operator. More...
    ~cursor () noexcept   Destructor. More...
    operator MDB_cursor * () const noexcept   Returns the underlying `MDB_cursor*` handle. More...
  MDB_cursorhandle () const noexcept   Returns the underlying `MDB_cursor*` handle. More...
  void  close () noexcept   Closes this cursor. More...
  void  renew (MDB_txn *const txn)   Renews this cursor. More...
  MDB_txntxn () const noexcept   Returns the cursor's transaction handle. More...
  MDB_dbi  dbi () const noexcept   Returns the cursor's database handle. More...
  bool  get (MDB_val *const key, const MDB_cursor_op op)   Retrieves a key from the database. More...
  bool  get (lmdb::val &key, const MDB_cursor_op op)   Retrieves a key from the database. More...
  bool  get (MDB_val *const key, MDB_val *const val, const MDB_cursor_op op)   Retrieves a key/value pair from the database. More...
  bool  get (lmdb::val &key, lmdb::val &val, const MDB_cursor_op op)   Retrieves a key/value pair from the database. More...
  template<typename K , typename V > bool  get (K &key, V &val, const MDB_cursor_op op)   Retrieves a key/value pair from the database. More...
  template<typename K > bool  find (const K &key, const MDB_cursor_op op=MDB_SET)   Positions this cursor at the given key. More...
 

Resource class for `MDB_cursor*` handles.

Note
Instances of this class are movable, but not copyable.
See also
http://symas.com/mdb/doc/group__internal.html#structMDB__cursor

Definition at line 1863 of file lmdb++.h.

◆ cursor() [1/2]

Constructor.

Parameters
handle a valid `MDB_cursor*` handle

Definition at line 1893 of file lmdb++.h.

References handle().

◆ cursor() [2/2] lmdb::cursor::cursor ( cursor &&  other ) inlinenoexcept ◆ ~cursor() lmdb::cursor::~cursor ( ) inlinenoexcept ◆ close() void lmdb::cursor::close ( ) inlinenoexcept ◆ dbi() MDB_dbi lmdb::cursor::dbi ( ) const inlinenoexcept ◆ find() ◆ get() [1/5]

template<typename K , typename V >

◆ get() [2/5] ◆ get() [3/5] ◆ get() [4/5] ◆ get() [5/5] ◆ handle() ◆ open()

Creates an LMDB cursor.

Parameters
txn the transaction handle dbi the database handle
Exceptions

Definition at line 1878 of file lmdb++.h.

References assert, lmdb::cursor_open(), and handle().

Referenced by CPubseqGatewayCacheBlobProp::EnumerateBlobProp(), CPubseqGatewayCacheBioseqInfo::Fetch(), CPubseqGatewayCacheBlobProp::Fetch(), CPubseqGatewayCacheSi2Csi::Fetch(), CPubseqGatewayCacheSi2Csi::FetchLast(), CPubseqGatewayCacheBlobProp::FetchLast(), CPubseqGatewayCacheBioseqInfo::FetchLast(), CSeqDBLMDB::GetDBTaxIds(), CSeqDBLMDB::GetOid(), CSeqDBLMDB::GetOids(), CSeqDBLMDB::GetOidsForTaxIds(), and CSeqDBLMDB::GetVolumesInfo().

◆ operator MDB_cursor *()

Returns the underlying `MDB_cursor*` handle.

Definition at line 1923 of file lmdb++.h.

References _handle.

◆ operator=() ◆ renew() ◆ txn() MDB_txn* lmdb::cursor::txn ( ) const inlinenoexcept ◆ _handle ◆ default_flags constexpr unsigned int lmdb::cursor::default_flags = 0 staticconstexpr

Definition at line 1868 of file lmdb++.h.

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4