Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericQueue ¶
type GenericQueue struct {
// contains filtered or unexported fields
}
GenericQueue represents a queue of Generic types.
func NewGenericQueue ¶
func NewGenericQueue() *GenericQueue
NewGenericQueue makes a new empty Generic queue.
func (*GenericQueue) Deq ¶
func (q *GenericQueue) Deq() Generic
Deq removes and returns the next item in the queue.
func (*GenericQueue) Enq ¶
func (q *GenericQueue) Enq(obj Generic) *GenericQueue
Enq adds an item to the queue.
func (*GenericQueue) Len ¶
func (q *GenericQueue) Len() int
Len gets the current number of Generic items in the queue.
Click to show internal directories.
Click to hide internal directories.