Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircularQueue ¶
CircularQueue circular queue
func (*CircularQueue) All ¶
func (q *CircularQueue) All() []interface{}
All get all elements order from first to last, but not delete
func (*CircularQueue) AllInReverse ¶
func (q *CircularQueue) AllInReverse() []interface{}
AllInReverse get all elements order from last to first, but not delete
func (*CircularQueue) Cap ¶
func (q *CircularQueue) Cap() int
func (*CircularQueue) EnQueue ¶
func (q *CircularQueue) EnQueue(data interface{})
EnQueue add a data to tail
func (*CircularQueue) IsEmpty ¶
func (q *CircularQueue) IsEmpty() bool
IsEmpty judge a queue is empty
func (*CircularQueue) Len ¶
func (q *CircularQueue) Len() int
Click to show internal directories.
Click to hide internal directories.