[block_counter] Add block_counter::clear()
This commit is contained in:
parent
de843991e3
commit
27ca8cc009
@ -62,6 +62,10 @@ namespace persistent_data {
|
|||||||
return stop_on_error_;
|
return stop_on_error_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void clear() {
|
||||||
|
counts_.clear();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
count_map counts_;
|
count_map counts_;
|
||||||
bool stop_on_error_;
|
bool stop_on_error_;
|
||||||
@ -86,6 +90,11 @@ namespace persistent_data {
|
|||||||
base::run_set<block_address> const& get_visited() const {
|
base::run_set<block_address> const& get_visited() const {
|
||||||
return visited_;
|
return visited_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void clear() {
|
||||||
|
visited_.clear();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
base::run_set<block_address> visited_;
|
base::run_set<block_address> visited_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user