diff options
Diffstat (limited to 'table/block.h')
-rw-r--r-- | table/block.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/table/block.h b/table/block.h index 3d4b03c..c8f1f7b 100644 --- a/table/block.h +++ b/table/block.h @@ -20,24 +20,23 @@ class Block { // Initialize the block with the specified contents. explicit Block(const BlockContents& contents); + Block(const Block&) = delete; + Block& operator=(const Block&) = delete; + ~Block(); size_t size() const { return size_; } Iterator* NewIterator(const Comparator* comparator); private: + class Iter; + uint32_t NumRestarts() const; const char* data_; size_t size_; uint32_t restart_offset_; // Offset in data_ of restart array bool owned_; // Block owns data_[] - - // No copying allowed - Block(const Block&); - void operator=(const Block&); - - class Iter; }; } // namespace leveldb |