Commit 73c65d44 authored by Matt Ma's avatar Matt Ma Committed by Facebook Github Bot

Change QMS iterator to take const QMS* in constructor.

Summary: The functions in QMS are all marked as const already.

Reviewed By: philippv

Differential Revision: D18240371

fbshipit-source-id: 113f5c968207f0a4ff9b780cd43de43cb90f758b
parent 55cb92ef
...@@ -288,7 +288,7 @@ uint64_t QuotientMultiSet<Instructions>::getBlockPayload( ...@@ -288,7 +288,7 @@ uint64_t QuotientMultiSet<Instructions>::getBlockPayload(
template <class Instructions> template <class Instructions>
QuotientMultiSet<Instructions>::Iterator::Iterator( QuotientMultiSet<Instructions>::Iterator::Iterator(
QuotientMultiSet<Instructions>* qms) const QuotientMultiSet<Instructions>* qms)
: qms_(qms), : qms_(qms),
key_(0), key_(0),
occBlockIndex_(-1), occBlockIndex_(-1),
......
...@@ -176,7 +176,7 @@ class QuotientMultiSet final { ...@@ -176,7 +176,7 @@ class QuotientMultiSet final {
template <class Instructions> template <class Instructions>
class QuotientMultiSet<Instructions>::Iterator { class QuotientMultiSet<Instructions>::Iterator {
public: public:
explicit Iterator(QuotientMultiSet<Instructions>* qms); explicit Iterator(const QuotientMultiSet<Instructions>* qms);
// Advance to the next key. // Advance to the next key.
bool next(); bool next();
...@@ -209,7 +209,7 @@ class QuotientMultiSet<Instructions>::Iterator { ...@@ -209,7 +209,7 @@ class QuotientMultiSet<Instructions>::Iterator {
// Move to next occupied. // Move to next occupied.
bool nextOccupied(); bool nextOccupied();
QuotientMultiSet<Instructions>* qms_; const QuotientMultiSet<Instructions>* qms_;
uint64_t key_; uint64_t key_;
// State members for the quotient occupied position. // State members for the quotient occupied position.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment