Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
utils
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
countingWheel.h
Utils::Counter
Definition:
counter.h:21
Utils::Counter::increment
bool increment()
Definition:
counter.cpp:36
Utils::Counter::getValue
std::vector< unsigned int > getValue()
Definition:
counter.cpp:48
Utils::Counter::addWheel
void addWheel(unsigned int base)
Definition:
counter.cpp:23
Utils::Counter::getNumberOfValues
long long unsigned int getNumberOfValues()
Definition:
counter.cpp:60
Utils::Counter::~Counter
~Counter()
Definition:
counter.cpp:15
Utils::Counter::initialize
void initialize()
Definition:
counter.cpp:28
Utils
Definition:
context.h:16
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11