Scheduler
counter.h
Go to the documentation of this file.
1 
10 #ifndef COUNTER_H
11 #define COUNTER_H
12 
13 #include "countingWheel.h"
14 
15 #include <vector>
16 
17 namespace Utils
18 {
19 
21 class Counter
22 {
23 public:
24  ~Counter();
25  void addWheel(unsigned int base);
26  void initialize();
27  bool increment();
28  std::vector<unsigned int> getValue();
29  /*The number of different values that the counter is able to produce*/
30  long long unsigned int getNumberOfValues();
31 private:
32  /*wheels[0] is the "LSB" wheel*/
33  std::vector<CountingWheel*> wheels;
34 };
35 
36 }
37 
38 #endif
bool increment()
Definition: counter.cpp:36
std::vector< unsigned int > getValue()
Definition: counter.cpp:48
void addWheel(unsigned int base)
Definition: counter.cpp:23
long long unsigned int getNumberOfValues()
Definition: counter.cpp:60
void initialize()
Definition: counter.cpp:28
Definition: context.h:16