Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
db_iter.h
Go to the documentation of this file.
1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. See the AUTHORS file for names of contributors.
4 
5 #ifndef STORAGE_LEVELDB_DB_DB_ITER_H_
6 #define STORAGE_LEVELDB_DB_DB_ITER_H_
7 
8 #include <stdint.h>
9 #include "leveldb/db.h"
10 #include "db/dbformat.h"
11 
12 namespace leveldb {
13 
14 class DBImpl;
15 
16 // Return a new iterator that converts internal keys (yielded by
17 // "*internal_iter") that were live at the specified "sequence" number
18 // into appropriate user keys.
19 extern Iterator* NewDBIterator(
20  DBImpl* db,
21  const Comparator* user_key_comparator,
22  Iterator* internal_iter,
23  SequenceNumber sequence,
24  uint32_t seed);
25 
26 } // namespace leveldb
27 
28 #endif // STORAGE_LEVELDB_DB_DB_ITER_H_
Iterator * NewDBIterator(DBImpl *db, const Comparator *user_key_comparator, Iterator *internal_iter, SequenceNumber sequence, uint32_t seed)
Definition: db_iter.cc:307
uint64_t SequenceNumber
Definition: dbformat.h:63
unsigned int uint32_t
Definition: stdint.h:21