diff options
Diffstat (limited to 'src/3rdparty/btree/qt/qbtreecursor.h')
-rw-r--r-- | src/3rdparty/btree/qt/qbtreecursor.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/3rdparty/btree/qt/qbtreecursor.h b/src/3rdparty/btree/qt/qbtreecursor.h deleted file mode 100644 index 7d2b5cf8..00000000 --- a/src/3rdparty/btree/qt/qbtreecursor.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef QBTREECURSOR_H -#define QBTREECURSOR_H - -#include "qbtreedata.h" - -class QBtree; -class QBtreeTxn; -struct cursor; - -class QBtreeCursor -{ -public: - QBtreeCursor(); - explicit QBtreeCursor(QBtreeTxn *txn); - explicit QBtreeCursor(QBtree *btree, bool commitedOnly = false); - ~QBtreeCursor(); - - QBtreeCursor(const QBtreeCursor &other); - QBtreeCursor &operator=(const QBtreeCursor &other); - - bool current(QByteArray *baKey, QByteArray *baValue) const; - bool current(QBtreeData *baKey, QBtreeData *baValue) const; - - const QBtreeData &key() const { return mKey; } - const QBtreeData &value() const { return mValue; } - - bool first(); - bool last(); - - bool next(); - bool previous(); - - bool seek(const QByteArray &baKey); - bool seek(const QBtreeData &key); - - bool seekRange(const QByteArray &baKey); - bool seekRange(const QBtreeData &key); - -private: - struct cursor *mCursor; - QBtreeData mKey; - QBtreeData mValue; - - bool moveHelper(const char *key, int size, int cursorOp); -}; - -#endif // QBTREECURSOR_H |