Skip to content

Commit

Permalink
Improve the comments of ArrayQueue.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcgi committed Aug 17, 2021
1 parent 85939c5 commit 0907ef0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Engine/Toolkit/Utils/ArrayQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ struct AArrayQueue
void (*Release) (ArrayQueue* arrayQueue);

/**
* Push element from elementPtr into ArrayQueue.
* Push the element from elementPtr to the tail of ArrayQueue.
* elementPtr: point to element
*
* return elementPtr in ArrayQueue.
* return the elementPtr in ArrayQueue.
*/
void* (*Push) (ArrayQueue* arrayQueue, void* elementPtr);

/**
* Pop element from ArrayQueue.
* return top elementPtr in ArrayQueue, if no element return defaultElementPtr.
* Pop the element from the head of ArrayQueue.
* return the top elementPtr of the ArrayQueue, if no element return defaultElementPtr.
*/
void* (*Pop) (ArrayQueue* arrayQueue, void* defaultElementPtr);

/**
* Remove element at index that range in [topIndex, ArrayQueue size - 1].
* Remove the element at index that range in [topIndex, ArrayQueue size - 1].
*/
void (*RemoveAt) (ArrayQueue* arrayQueue, int index);

Expand Down

0 comments on commit 0907ef0

Please sign in to comment.