Documentation ¶
Index ¶
- type CircularIterator
- type Iterator
- type Node
- type PriorityList
- func (pl *PriorityList) CircularIterator() *CircularIterator
- func (pl *PriorityList) Clear()
- func (l *PriorityList) Contains(values ...interface{}) bool
- func (pl *PriorityList) Empty() bool
- func (pl *PriorityList) GetNode(idx int) (*Node, bool)
- func (pl *PriorityList) Index(idx int) (interface{}, bool)
- func (pl *PriorityList) Iterator() *Iterator
- func (pl *PriorityList) Pop() (result interface{}, ok bool)
- func (pl *PriorityList) Push(value interface{})
- func (pl *PriorityList) RString() string
- func (pl *PriorityList) Remove(idx int) (result interface{}, isfound bool)
- func (pl *PriorityList) RemoveNode(node *Node)
- func (pl *PriorityList) RemoveWithIndex(idx int)
- func (pl *PriorityList) Size() uint
- func (pl *PriorityList) String() string
- func (pl *PriorityList) Top() (result interface{}, ok bool)
- func (l *PriorityList) Traversal(every func(interface{}) bool)
- func (pl *PriorityList) Values() []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircularIterator ¶
type CircularIterator struct {
// contains filtered or unexported fields
}
func (*CircularIterator) Next ¶
func (iter *CircularIterator) Next() bool
func (*CircularIterator) Prev ¶
func (iter *CircularIterator) Prev() bool
func (*CircularIterator) ToHead ¶
func (iter *CircularIterator) ToHead()
func (*CircularIterator) ToTail ¶
func (iter *CircularIterator) ToTail()
func (*CircularIterator) Value ¶
func (iter *CircularIterator) Value() interface{}
type PriorityList ¶
func New ¶
func New(Compare compare.Compare) *PriorityList
func (*PriorityList) CircularIterator ¶
func (pl *PriorityList) CircularIterator() *CircularIterator
func (*PriorityList) Clear ¶
func (pl *PriorityList) Clear()
func (*PriorityList) Contains ¶
func (l *PriorityList) Contains(values ...interface{}) bool
func (*PriorityList) Empty ¶
func (pl *PriorityList) Empty() bool
func (*PriorityList) Index ¶
func (pl *PriorityList) Index(idx int) (interface{}, bool)
func (*PriorityList) Iterator ¶
func (pl *PriorityList) Iterator() *Iterator
func (*PriorityList) Pop ¶
func (pl *PriorityList) Pop() (result interface{}, ok bool)
func (*PriorityList) Push ¶
func (pl *PriorityList) Push(value interface{})
func (*PriorityList) RString ¶
func (pl *PriorityList) RString() string
func (*PriorityList) Remove ¶
func (pl *PriorityList) Remove(idx int) (result interface{}, isfound bool)
func (*PriorityList) RemoveNode ¶
func (pl *PriorityList) RemoveNode(node *Node)
func (*PriorityList) RemoveWithIndex ¶
func (pl *PriorityList) RemoveWithIndex(idx int)
func (*PriorityList) Size ¶
func (pl *PriorityList) Size() uint
func (*PriorityList) String ¶
func (pl *PriorityList) String() string
func (*PriorityList) Top ¶
func (pl *PriorityList) Top() (result interface{}, ok bool)
func (*PriorityList) Traversal ¶
func (l *PriorityList) Traversal(every func(interface{}) bool)
func (*PriorityList) Values ¶
func (pl *PriorityList) Values() []interface{}
Click to show internal directories.
Click to hide internal directories.