Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class T>
- class TreapNode{
- public:
- // STEP-BY-STEP
- static void loopLatency();
- static void changeLoopState();
- void changeStepByStepMode();
- void setDisableStepMode();
- private:
- static bool stepLoopSwitcher;
- static bool stepButStepEnable;
- };
- template<class T>
- void TreapNode<T>::changeLoopState(){
- stepLoopSwitcher = false;
- }
- template<class T>
- void TreapNode<T>::changeStepByStepMode(){
- stepButStepEnable = true;
- }
- template<class T>
- void TreapNode<T>::setDisableStepMode(){
- stepButStepEnable = false;
- }
- template<class T>
- void TreapNode<T>::loopLatency(){
- qDebug() << "Loop latency for step-by-step started" << endl;
- for( ; ; ) {
- QApplication::processEvents();
- if(stepLoopSwitcher == false) break;
- }
- stepLoopSwitcher = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement