Documentation ¶
Overview ¶
Package deque implement a fixed size thread safe queue as a generalization of both queue and stack
Index ¶
- Constants
- type Deque
- func (q *Deque) Cap() int
- func (q *Deque) Contains(value interface{}) bool
- func (q *Deque) Count(value interface{}) int
- func (q *Deque) GetAll() []interface{}
- func (q *Deque) GetLeft() interface{}
- func (q *Deque) GetRight() interface{}
- func (q *Deque) Len() int
- func (q *Deque) PopLeft() interface{}
- func (q *Deque) PopRight() interface{}
- func (q *Deque) Purge()
- func (q *Deque) PushLeft(item interface{}) (evicted bool)
- func (q *Deque) PushRight(item interface{}) (evicted bool)
- func (q *Deque) Remove(value interface{})
- func (q *Deque) Reverse()
- func (q *Deque) Rotate(step int)
Constants ¶
View Source
const (
Default_Deque_Size = 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deque ¶
type Deque struct {
// contains filtered or unexported fields
}
Deque implement a queue as a generalization of both queue and stack
Click to show internal directories.
Click to hide internal directories.