diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-04-05 10:15:47 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-04-05 10:15:47 +0200 |
commit | db3f435e27d06d889871860c81aeb139eeff53d5 (patch) | |
tree | 726bfa4927c51b838201b51fc60de373351667be /src/powerlist.h | |
parent | 00aea74f7f0a3c3759d7d807002cc5ca19ec0593 (diff) |
WIPdistance
Diffstat (limited to 'src/powerlist.h')
-rw-r--r-- | src/powerlist.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/powerlist.h b/src/powerlist.h index ffbd6ba..b1fd1fd 100644 --- a/src/powerlist.h +++ b/src/powerlist.h @@ -44,7 +44,13 @@ struct PowerListItem return this->power < power; } }; -using PowerListItems = std::vector<PowerListItem>; +class PowerListItems + : public std::vector<PowerListItem> +{ +public: + float getMaxPower() const; + float getMinPower() const; +}; class PowerList { @@ -54,7 +60,7 @@ public: void add(Sample* s); void finalise(); ///< Call this when no more samples will be added. - const PowerListItems& getPowerListItems() const; + const PowerListItems& getPowerListItems(float position) const; float getMaxPower() const; float getMinPower() const; |