Filter: add override keyword
This commit is contained in:
parent
bc212073a2
commit
1056321457
@ -33,7 +33,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// apply - Add a new raw value to the filter, retrieve the filtered result
|
// apply - Add a new raw value to the filter, retrieve the filtered result
|
||||||
virtual T apply(T sample);
|
virtual T apply(T sample) override;
|
||||||
|
|
||||||
// reset - clear the filter
|
// reset - clear the filter
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
float slope(void);
|
float slope(void);
|
||||||
|
|
||||||
// reset - clear the filter
|
// reset - clear the filter
|
||||||
virtual void reset();
|
virtual void reset() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool _new_data;
|
bool _new_data;
|
||||||
|
@ -31,10 +31,10 @@ public:
|
|||||||
FilterWithBuffer();
|
FilterWithBuffer();
|
||||||
|
|
||||||
// apply - Add a new raw value to the filter, retrieve the filtered result
|
// apply - Add a new raw value to the filter, retrieve the filtered result
|
||||||
virtual T apply(T sample);
|
virtual T apply(T sample) override;
|
||||||
|
|
||||||
// reset - clear the filter
|
// reset - clear the filter
|
||||||
virtual void reset();
|
virtual void reset() override;
|
||||||
|
|
||||||
// get filter size
|
// get filter size
|
||||||
uint8_t get_filter_size() const {
|
uint8_t get_filter_size() const {
|
||||||
|
@ -30,7 +30,7 @@ public:
|
|||||||
ModeFilter(uint8_t return_element);
|
ModeFilter(uint8_t return_element);
|
||||||
|
|
||||||
// apply - Add a new raw value to the filter, retrieve the filtered result
|
// apply - Add a new raw value to the filter, retrieve the filtered result
|
||||||
virtual T apply(T sample);
|
virtual T apply(T sample) override;
|
||||||
|
|
||||||
// get - get latest filtered value from filter (equal to the value returned by latest call to apply method)
|
// get - get latest filtered value from filter (equal to the value returned by latest call to apply method)
|
||||||
virtual T get() const {
|
virtual T get() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user