mirror of
https://github.com/koloideal/SortLab.git
synced 2026-06-10 10:25:30 +03:00
update
This commit is contained in:
@@ -15,8 +15,16 @@ public:
|
||||
void setValue(int index, float value);
|
||||
void setState(int index, State state);
|
||||
void resetStates();
|
||||
void resetCounters();
|
||||
|
||||
size_t getComparisons() const;
|
||||
size_t getSwaps() const;
|
||||
void incrementComparisons();
|
||||
void incrementSwaps();
|
||||
|
||||
private:
|
||||
std::vector<float> data_;
|
||||
std::vector<State> states_;
|
||||
size_t comparisons_;
|
||||
size_t swaps_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user