Tanoda
|
Public Member Functions | |
CircularObjectBuffer (int capacity) | |
virtual void | Put (ref T item) |
void | Get (out T t, int index=0) |
void | Resize (int newCapacity) |
Properties | |
int | Count [get] |
int | Capacity [get] |
bool | IsEmpty [get] |
A Limited capacity, circular LIFO buffer that wraps around when full. Supports indexing to get older items. Array-backed.
Object types used must have default parameterless constructor. It should be obvious that such default objects are invalid. I.e. for Leap API objects, the IsValid property should be false.
T | : | new() |
Definition at line 22 of file CircularObjectBuffer.cs.
LeapInternal.CircularObjectBuffer< T >.CircularObjectBuffer | ( | int | capacity | ) |
Definition at line 30 of file CircularObjectBuffer.cs.
void LeapInternal.CircularObjectBuffer< T >.Get | ( | out T | t, |
int | index = 0 |
||
) |
Get the item indexed backward from the head of the list
Definition at line 58 of file CircularObjectBuffer.cs.
|
virtual |
Put an item at the head of the list. Once full, this will overwrite the oldest item.
Definition at line 39 of file CircularObjectBuffer.cs.
void LeapInternal.CircularObjectBuffer< T >.Resize | ( | int | newCapacity | ) |
Increase
Definition at line 74 of file CircularObjectBuffer.cs.
|
get |
Definition at line 27 of file CircularObjectBuffer.cs.
|
get |
Definition at line 26 of file CircularObjectBuffer.cs.
|
get |
Definition at line 28 of file CircularObjectBuffer.cs.