Documentation
¶
Index ¶
- func InitLoopQueue() basic.Queue
- func NewArrayQueue() basic.Queue
- func NewLoopQueue(cap int) basic.Queue
- type Array
- func (arr *Array) Add(i int, e interface{})
- func (arr *Array) AddFirst(e interface{})
- func (arr *Array) AddLast(e interface{})
- func (arr *Array) Cap() int
- func (arr *Array) Contains(e interface{}) bool
- func (arr *Array) Find(e interface{}) int
- func (arr *Array) Get(i int) interface{}
- func (arr *Array) GetFirst() interface{}
- func (arr *Array) GetLast() interface{}
- func (arr *Array) IsEmpty() bool
- func (arr *Array) Len() int
- func (arr *Array) Remove(i int) interface{}
- func (arr *Array) RemoveElement(e interface{})
- func (arr *Array) RemoveFirst() interface{}
- func (arr *Array) RemoveLast() interface{}
- func (arr *Array) Set(i int, e interface{})
- func (arr *Array) String() string
- type ArrayQueue
- type LoopQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLoopQueue ¶
func NewArrayQueue ¶
func NewLoopQueue ¶
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
func (*Array) RemoveElement ¶
func (arr *Array) RemoveElement(e interface{})
func (*Array) RemoveFirst ¶
func (arr *Array) RemoveFirst() interface{}
func (*Array) RemoveLast ¶
func (arr *Array) RemoveLast() interface{}
type ArrayQueue ¶
type ArrayQueue struct {
// contains filtered or unexported fields
}
func (*ArrayQueue) Cap ¶
func (q *ArrayQueue) Cap() int
func (*ArrayQueue) Dequeue ¶
func (q *ArrayQueue) Dequeue() interface{}
func (*ArrayQueue) Enqueue ¶
func (q *ArrayQueue) Enqueue(e interface{})
func (*ArrayQueue) GetFront ¶
func (q *ArrayQueue) GetFront() interface{}
func (*ArrayQueue) IsEmpty ¶
func (q *ArrayQueue) IsEmpty() bool
func (*ArrayQueue) Len ¶
func (q *ArrayQueue) Len() int
func (*ArrayQueue) String ¶
func (q *ArrayQueue) String() string
Click to show internal directories.
Click to hide internal directories.