MCPcopy
hub / github.com/emirpasic/gods / Queue

Interface Queue

queues/queues.go:16–27  ·  view source on GitHub ↗

Queue interface that all queues implement

Source from the content-addressed store, hash-verified

14
15// Queue interface that all queues implement
16type Queue interface {
17 Enqueue(value interface{})
18 Dequeue() (value interface{}, ok bool)
19 Peek() (value interface{}, ok bool)
20
21 containers.Container
22 // Empty() bool
23 // Size() int
24 // Clear()
25 // Values() []interface{}
26 // String() string
27}

Callers 79

TestQueueEnqueueFunction · 0.65
TestQueuePeekFunction · 0.65
TestQueueDequeueFunction · 0.65
TestQueueDequeueFullFunction · 0.65
TestQueueIteratorNextFunction · 0.65
TestQueueIteratorPrevFunction · 0.65
TestQueueIteratorBeginFunction · 0.65
TestQueueIteratorEndFunction · 0.65
TestQueueDequeueFunction · 0.65
TestQueueDequeueFullFunction · 0.65
benchmarkDequeueFunction · 0.65
TestQueueDequeueFunction · 0.65

Implementers 4

Queuequeues/circularbuffer/circularbuffer.g
Queuequeues/linkedlistqueue/linkedlistqueue
Queuequeues/priorityqueue/priorityqueue.go
Queuequeues/arrayqueue/arrayqueue.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…