Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrQueueEmpty = errors.New("cola vacia")
View Source
var ErrQueueFull = errors.New("cola llena")
Functions ¶
This section is empty.
Types ¶
type ArrayQueue ¶
type ArrayQueue struct {
// contains filtered or unexported fields
}
func New ¶
func New(capacity int) ArrayQueue
func (*ArrayQueue) Clear ¶
func (q *ArrayQueue) Clear()
func (*ArrayQueue) Dequeue ¶
func (q *ArrayQueue) Dequeue() (e int, err error)
func (*ArrayQueue) Enqueue ¶
func (q *ArrayQueue) Enqueue(e int) error
func (ArrayQueue) Front ¶
func (q ArrayQueue) Front() (e int, err error)
func (ArrayQueue) Size ¶
func (q ArrayQueue) Size() int
Click to show internal directories.
Click to hide internal directories.