Tanoda
|
Classes | |
struct | RingBufferEnumerator |
Public Member Functions | |
RingBuffer (int bufferSize) | |
void | Clear () |
void | Add (T t) |
void | Push (T t) |
Synonym for "Add". More... | |
T | Get (int idx) |
Oldest element is at index 0, youngest is at Count - 1. More... | |
T | GetLatest () |
T | GetOldest () |
void | Set (int idx, T t) |
void | SetLatest (T t) |
override string | ToString () |
RingBufferEnumerator | GetEnumerator () |
Properties | |
int | Count [get] |
int | Capacity [get] |
bool | IsFull [get] |
bool | IsEmpty [get] |
T | this[int idx] [get, set] |
Oldest element is at index 0, youngest is at Count - 1. More... | |
![]() | |
T | this[int idx] [get] |
int | Count [get] |
Definition at line 14 of file RingBuffer.cs.
Leap.Unity.RingBuffer< T >.RingBuffer | ( | int | bufferSize | ) |
Definition at line 20 of file RingBuffer.cs.
void Leap.Unity.RingBuffer< T >.Add | ( | T | t | ) |
Definition at line 62 of file RingBuffer.cs.
void Leap.Unity.RingBuffer< T >.Clear | ( | ) |
Definition at line 57 of file RingBuffer.cs.
T Leap.Unity.RingBuffer< T >.Get | ( | int | idx | ) |
Oldest element is at index 0, youngest is at Count - 1.
Definition at line 81 of file RingBuffer.cs.
RingBufferEnumerator Leap.Unity.RingBuffer< T >.GetEnumerator | ( | ) |
Definition at line 133 of file RingBuffer.cs.
T Leap.Unity.RingBuffer< T >.GetLatest | ( | ) |
Definition at line 90 of file RingBuffer.cs.
T Leap.Unity.RingBuffer< T >.GetOldest | ( | ) |
Definition at line 98 of file RingBuffer.cs.
void Leap.Unity.RingBuffer< T >.Push | ( | T | t | ) |
Synonym for "Add".
Definition at line 74 of file RingBuffer.cs.
void Leap.Unity.RingBuffer< T >.Set | ( | int | idx, |
T | t | ||
) |
Definition at line 106 of file RingBuffer.cs.
void Leap.Unity.RingBuffer< T >.SetLatest | ( | T | t | ) |
Definition at line 113 of file RingBuffer.cs.
override string Leap.Unity.RingBuffer< T >.ToString | ( | ) |
Definition at line 121 of file RingBuffer.cs.
|
get |
Definition at line 36 of file RingBuffer.cs.
|
get |
Implements Leap.Unity.IIndexable< T >.
Definition at line 25 of file RingBuffer.cs.
|
get |
Definition at line 45 of file RingBuffer.cs.
|
get |
Definition at line 40 of file RingBuffer.cs.
|
getset |
Oldest element is at index 0, youngest is at Count - 1.
Implements Leap.Unity.IIndexable< T >.
Definition at line 52 of file RingBuffer.cs.