| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef TIMERACTIONS_HPP
- #define TIMERACTIONS_HPP
- #include "timer.hpp"
- #include <chrono>
- #include <cstddef>
- #include <functional>
- #include <memory>
- #include <ncurses.h>
- #include <string>
- #include <vector>
- class swapaction : public timeraction {
- public:
- size_t it_i = 0;
- bool iscomplete = false;
- std::vector<int> &input_vector;
- swapaction(std::vector<int> &input_vector);
- void update(const timer &t);
- };
- class sortaction : public timeraction {
- public:
- size_t it_i = 0;
- size_t it_j = 0;
- bool iscomplete = false;
- std::vector<int> &input_vector;
- sortaction(std::vector<int> &input_vector);
- void update(const timer &t);
- };
- #endif
|