summaryrefslogtreecommitdiff
path: root/src/powerlist.h
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-05-09 10:48:44 +0200
committerChristian Glöckner <cgloeckner@freenet.de>2016-05-26 17:51:24 +0200
commit355f9e4e2ebace6cce52a277cbaf1d1bfc904d61 (patch)
treea2b75edce884d7048e56195b516cd225f304d9d4 /src/powerlist.h
parent42445dfea6991bd791ee5aaec06a069f5dc30b83 (diff)
Initial Refactoring on PowerList
Diffstat (limited to 'src/powerlist.h')
-rw-r--r--src/powerlist.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/powerlist.h b/src/powerlist.h
index 53a42b8..ff360b4 100644
--- a/src/powerlist.h
+++ b/src/powerlist.h
@@ -38,13 +38,12 @@ public:
void add(Sample* s);
void finalise(); ///< Call this when no more samples will be added.
-
+
Sample* get(level_t velocity);
private:
- class PowerListItem
+ struct PowerListItem
{
- public:
Sample* sample;
float power;
};
@@ -54,7 +53,7 @@ private:
std::vector<PowerListItem> samples;
float power_max;
float power_min;
-
+
Channel* getMasterChannel();
Sample* lastsample;
};