Skip to content

Commit

Permalink
Update block_builder.h
Browse files Browse the repository at this point in the history
more c++11 way noncopyable and keep parameter's name of constructor consistent
  • Loading branch information
wankai committed Aug 28, 2014
1 parent 536e997 commit 528a11c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions table/block_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ class Comparator;

class BlockBuilder {
public:
BlockBuilder(int block_builder, const Comparator* comparator);

BlockBuilder(const BlockBuilder&) = delete;
void operator=(const BlockBuilder&) = delete;

BlockBuilder(int block_restart_interval, const Comparator* comparator);

// Reset the contents as if the BlockBuilder was just constructed.
void Reset();

Expand Down Expand Up @@ -55,10 +58,6 @@ class BlockBuilder {
int counter_; // Number of entries emitted since restart
bool finished_; // Has Finish() been called?
std::string last_key_;

// No copying allowed
BlockBuilder(const BlockBuilder&);
void operator=(const BlockBuilder&);
};

} // namespace rocksdb

0 comments on commit 528a11c

Please sign in to comment.