More...
|
| RollingWindow (long maxSize) |
| Create a rolling window of max size maxSize.
|
void | Add (T item) |
| Add an item to the window, will discard any old items which exceed the configured window length.- Parameters
-
|
void | Dispose () |
IEnumerator< T > | GetEnumerator () |
|
long | MaxSize [get, set] |
| Get or set the maximum size for this window. If you set the MaxSize after construction to a value smaller than before and the RollingWindow is already at capacity, extraneous items will be trimmed.
|
◆ Add()
void PeanutButter.Utils.RollingWindow< T >.Add |
( |
T | item | ) |
|
◆ RollingWindow()
PeanutButter.Utils.RollingWindow< T >.RollingWindow |
( |
long | maxSize | ) |
|
Create a rolling window of max size maxSize.
- Parameters
-
- Exceptions
-
◆ MaxSize
long PeanutButter.Utils.RollingWindow< T >.MaxSize |
|
getset |
Get or set the maximum size for this window. If you set the MaxSize after construction to a value smaller than before and the RollingWindow is already at capacity, extraneous items will be trimmed.
Implements PeanutButter.Utils.IRollingWindow< T >.
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/RollingWindow.cs