Documentation
¶
Index ¶
- type CircularQueue
- func (q *CircularQueue) CountUnused() int
- func (q *CircularQueue) CountUsed() int
- func (q *CircularQueue) DeQueue() (any, bool)
- func (q *CircularQueue) EnQueue(item any) bool
- func (q *CircularQueue) Front() any
- func (q *CircularQueue) IsEmpty() bool
- func (q *CircularQueue) IsFull() bool
- func (q *CircularQueue) Rear() any
- func (q *CircularQueue) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircularQueue ¶
type CircularQueue struct {
// contains filtered or unexported fields
}
func NewCircularQueue ¶
func NewCircularQueue(size int) *CircularQueue
func (*CircularQueue) CountUnused ¶
func (q *CircularQueue) CountUnused() int
func (*CircularQueue) CountUsed ¶
func (q *CircularQueue) CountUsed() int
func (*CircularQueue) DeQueue ¶
func (q *CircularQueue) DeQueue() (any, bool)
func (*CircularQueue) EnQueue ¶
func (q *CircularQueue) EnQueue(item any) bool
func (*CircularQueue) Front ¶
func (q *CircularQueue) Front() any
func (*CircularQueue) IsEmpty ¶
func (q *CircularQueue) IsEmpty() bool
func (*CircularQueue) IsFull ¶
func (q *CircularQueue) IsFull() bool
func (*CircularQueue) Rear ¶
func (q *CircularQueue) Rear() any
func (*CircularQueue) Size ¶
func (q *CircularQueue) Size() int
Click to show internal directories.
Click to hide internal directories.