This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
espurna-mirror
mirror of
https://github.com/xoseperez/espurna
Watch
1
Star
0
Fork
1
Code
Releases
71
Activity
Browse Source
sns: simple filters with capacity of 1
dev
Maxim Prokhorov
3 months ago
parent
0f5fc5acc3
commit
0d4cf9a7c1
2 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
code/espurna/filters/LastFilter.h
+4
-0
code/espurna/filters/MaxFilter.h
+ 4
- 0
code/espurna/filters/LastFilter.h
View File
@ -13,6 +13,10 @@ public:
_value
=
value
;
}
size_t
capacity
(
)
const
override
{
return
1
;
}
void
reset
(
)
override
{
_value
=
0
;
}
+ 4
- 0
code/espurna/filters/MaxFilter.h
View File
@ -15,6 +15,10 @@ public:
_value
=
std
:
:
max
(
value
,
_value
)
;
}
size_t
capacity
(
)
const
override
{
return
1
;
}
void
reset
(
)
override
{
_value
=
0
;
}
Write
Preview
Loading…
Cancel
Save