Crystal AI
1.0.0
|
Circular buffer interface. More...
Public Member Functions | |
T | Enqueue (T item) |
Enqueue the specified item. More... | |
T | Dequeue () |
Dequeue this instance. More... | |
void | Clear () |
Clears the buffer. More... | |
int | IndexOf (T item) |
Returns the index of the first item equal to the query (item) if such an item exists within the buffer, -1 otherwise. More... | |
void | RemoveAt (int index) |
Removes the element at the given index. More... | |
Properties | |
int | Count [get] |
Number of elements in the buffer. More... | |
int | Capacity [get, set] |
The maximum capacity of the buffer. More... | |
T | Head [get] |
Returns the value at the head of the buffer. More... | |
T | Tail [get] |
Returns the value at the tail of the buffer. More... | |
T | this[int index] [get, set] |
Gets or sets the T:Crystal.ICircularBuffer`1 at the specified index. More... | |
Circular buffer interface.
void Crystal.ICircularBuffer< T >.Clear | ( | ) |
Clears the buffer.
Implemented in Crystal.CircularBuffer< T >.
T Crystal.ICircularBuffer< T >.Dequeue | ( | ) |
Dequeue this instance.
Implemented in Crystal.CircularBuffer< T >.
T Crystal.ICircularBuffer< T >.Enqueue | ( | T | item | ) |
Enqueue the specified item.
Implemented in Crystal.CircularBuffer< T >.
int Crystal.ICircularBuffer< T >.IndexOf | ( | T | item | ) |
Returns the index of the first item equal to the query (item) if such an item exists within the buffer, -1 otherwise.
Implemented in Crystal.CircularBuffer< T >.
void Crystal.ICircularBuffer< T >.RemoveAt | ( | int | index | ) |
Removes the element at the given index.
index | Index. |
Implemented in Crystal.CircularBuffer< T >.
|
getset |
The maximum capacity of the buffer.
The capacity.
|
get |
Number of elements in the buffer.
The count.
|
get |
Returns the value at the head of the buffer.
The head.
|
get |
Returns the value at the tail of the buffer.
The tail.
|
getset |
Gets or sets the T:Crystal.ICircularBuffer`1 at the specified index.
index | Index. |