Tanoda
Leap.Unity.RingBuffer< T > Class Template Reference
Inheritance diagram for Leap.Unity.RingBuffer< T >:
Leap.Unity.IIndexable< T >

Classes

struct  RingBufferEnumerator
 

Public Member Functions

 RingBuffer (int bufferSize)
 
void Clear ()
 
void Add (T t)
 
void Push (T t)
 Synonym for "Add". More...
 
Get (int idx)
 Oldest element is at index 0, youngest is at Count - 1. More...
 
GetLatest ()
 
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]
 
this[int idx] [get, set]
 Oldest element is at index 0, youngest is at Count - 1. More...
 
- Properties inherited from Leap.Unity.IIndexable< T >
this[int idx] [get]
 
int Count [get]
 

Detailed Description

Definition at line 14 of file RingBuffer.cs.

Constructor & Destructor Documentation

◆ RingBuffer()

Leap.Unity.RingBuffer< T >.RingBuffer ( int  bufferSize)

Definition at line 20 of file RingBuffer.cs.

Member Function Documentation

◆ Add()

void Leap.Unity.RingBuffer< T >.Add ( t)

Definition at line 62 of file RingBuffer.cs.

◆ Clear()

void Leap.Unity.RingBuffer< T >.Clear ( )

Definition at line 57 of file RingBuffer.cs.

◆ Get()

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.

◆ GetEnumerator()

Definition at line 133 of file RingBuffer.cs.

◆ GetLatest()

T Leap.Unity.RingBuffer< T >.GetLatest ( )

Definition at line 90 of file RingBuffer.cs.

◆ GetOldest()

T Leap.Unity.RingBuffer< T >.GetOldest ( )

Definition at line 98 of file RingBuffer.cs.

◆ Push()

void Leap.Unity.RingBuffer< T >.Push ( t)

Synonym for "Add".

Definition at line 74 of file RingBuffer.cs.

◆ Set()

void Leap.Unity.RingBuffer< T >.Set ( int  idx,
t 
)

Definition at line 106 of file RingBuffer.cs.

◆ SetLatest()

void Leap.Unity.RingBuffer< T >.SetLatest ( t)

Definition at line 113 of file RingBuffer.cs.

◆ ToString()

override string Leap.Unity.RingBuffer< T >.ToString ( )

Definition at line 121 of file RingBuffer.cs.

Property Documentation

◆ Capacity

int Leap.Unity.RingBuffer< T >.Capacity
get

Definition at line 36 of file RingBuffer.cs.

◆ Count

int Leap.Unity.RingBuffer< T >.Count
get

Implements Leap.Unity.IIndexable< T >.

Definition at line 25 of file RingBuffer.cs.

◆ IsEmpty

bool Leap.Unity.RingBuffer< T >.IsEmpty
get

Definition at line 45 of file RingBuffer.cs.

◆ IsFull

bool Leap.Unity.RingBuffer< T >.IsFull
get

Definition at line 40 of file RingBuffer.cs.

◆ this[int idx]

T Leap.Unity.RingBuffer< T >.this[int idx]
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.


The documentation for this class was generated from the following file: