summaryrefslogtreecommitdiff
path: root/db/db_impl.h
diff options
context:
space:
mode:
authorChris Mumford <cmumford@google.com>2019-05-09 14:00:07 -0700
committerChris Mumford <cmumford@google.com>2019-05-09 14:11:06 -0700
commit28e6d238be73e743c963fc0a26395b783a7565e2 (patch)
tree08c01ab9c9a7ece5f2e88b90bb69e8a378988b5d /db/db_impl.h
parent85cd40d108d8f8d91f58fd263c0f8428d11c34d5 (diff)
downloadleveldb-28e6d238be73e743c963fc0a26395b783a7565e2.tar.gz
Switch to using C++ 11 override specifier.
PiperOrigin-RevId: 247491163
Diffstat (limited to 'db/db_impl.h')
-rw-r--r--db/db_impl.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/db/db_impl.h b/db/db_impl.h
index ae87d6e..a3f1ed1 100644
--- a/db/db_impl.h
+++ b/db/db_impl.h
@@ -33,20 +33,21 @@ class DBImpl : public DB {
DBImpl(const DBImpl&) = delete;
DBImpl& operator=(const DBImpl&) = delete;
- virtual ~DBImpl();
+ ~DBImpl() override;
// Implementations of the DB interface
- virtual Status Put(const WriteOptions&, const Slice& key, const Slice& value);
- virtual Status Delete(const WriteOptions&, const Slice& key);
- virtual Status Write(const WriteOptions& options, WriteBatch* updates);
- virtual Status Get(const ReadOptions& options, const Slice& key,
- std::string* value);
- virtual Iterator* NewIterator(const ReadOptions&);
- virtual const Snapshot* GetSnapshot();
- virtual void ReleaseSnapshot(const Snapshot* snapshot);
- virtual bool GetProperty(const Slice& property, std::string* value);
- virtual void GetApproximateSizes(const Range* range, int n, uint64_t* sizes);
- virtual void CompactRange(const Slice* begin, const Slice* end);
+ Status Put(const WriteOptions&, const Slice& key,
+ const Slice& value) override;
+ Status Delete(const WriteOptions&, const Slice& key) override;
+ Status Write(const WriteOptions& options, WriteBatch* updates) override;
+ Status Get(const ReadOptions& options, const Slice& key,
+ std::string* value) override;
+ Iterator* NewIterator(const ReadOptions&) override;
+ const Snapshot* GetSnapshot() override;
+ void ReleaseSnapshot(const Snapshot* snapshot) override;
+ bool GetProperty(const Slice& property, std::string* value) override;
+ void GetApproximateSizes(const Range* range, int n, uint64_t* sizes) override;
+ void CompactRange(const Slice* begin, const Slice* end) override;
// Extra methods (for testing) that are not in the public DB interface