Documentation
ยถ
Index ยถ
- type LinkedList
- func (l *LinkedList) Backwards() (it types.KIterator)
- func (l *LinkedList) DequeBack() (item types.Hashable, err error)
- func (l *LinkedList) DequeFront() (item types.Hashable, err error)
- func (l *LinkedList) EnqueBack(item types.Hashable) (err error)
- func (l *LinkedList) EnqueFront(item types.Hashable) (err error)
- func (l *LinkedList) Equals(b types.Equatable) bool
- func (l *LinkedList) First() (item types.Hashable)
- func (l *LinkedList) Has(item types.Hashable) bool
- func (l *LinkedList) Hash() int
- func (l *LinkedList) Items() (it types.KIterator)
- func (l *LinkedList) Last() (item types.Hashable)
- func (l *LinkedList) Less(b types.Sortable) bool
- func (l *LinkedList) Pop() (item types.Hashable, err error)
- func (l *LinkedList) Push(item types.Hashable) (err error)
- func (l *LinkedList) Size() int
- func (l *LinkedList) String() string
- type Node
- type UniqueDeque
- func (l *UniqueDeque) Backwards() (it types.KIterator)
- func (l *UniqueDeque) DequeBack() (item types.Hashable, err error)
- func (l *UniqueDeque) DequeFront() (item types.Hashable, err error)
- func (l *UniqueDeque) EnqueBack(item types.Hashable) (err error)
- func (l *UniqueDeque) EnqueFront(item types.Hashable) (err error)
- func (l *UniqueDeque) Equals(b types.Equatable) bool
- func (l *UniqueDeque) First() (item types.Hashable)
- func (l *UniqueDeque) Has(item types.Hashable) bool
- func (l *UniqueDeque) Hash() int
- func (l *UniqueDeque) Items() (it types.KIterator)
- func (l *UniqueDeque) Last() (item types.Hashable)
- func (l *UniqueDeque) Less(b types.Sortable) bool
- func (l *UniqueDeque) Pop() (item types.Hashable, err error)
- func (l *UniqueDeque) Push(item types.Hashable) (err error)
- func (l *UniqueDeque) Size() int
- func (l *UniqueDeque) String() string
Constants ยถ
This section is empty.
Variables ยถ
This section is empty.
Functions ยถ
This section is empty.
Types ยถ
type LinkedList ยถ
A doubly linked list. There is no synchronization. The fields are publically accessible to allow for easy customization.
func New ยถ
func New() *LinkedList
func (*LinkedList) Backwards ยถ
func (l *LinkedList) Backwards() (it types.KIterator)
func (*LinkedList) DequeFront ยถ
func (l *LinkedList) DequeFront() (item types.Hashable, err error)
func (*LinkedList) EnqueFront ยถ
func (l *LinkedList) EnqueFront(item types.Hashable) (err error)
func (*LinkedList) Equals ยถ
func (l *LinkedList) Equals(b types.Equatable) bool
Can be compared to any types.IterableContainer
func (*LinkedList) First ยถ
func (l *LinkedList) First() (item types.Hashable)
func (*LinkedList) Hash ยถ
func (l *LinkedList) Hash() int
func (*LinkedList) Items ยถ
func (l *LinkedList) Items() (it types.KIterator)
func (*LinkedList) Last ยถ
func (l *LinkedList) Last() (item types.Hashable)
func (*LinkedList) Less ยถ
func (l *LinkedList) Less(b types.Sortable) bool
Can be compared to any types.IterableContainer
func (*LinkedList) Size ยถ
func (l *LinkedList) Size() int
func (*LinkedList) String ยถ
func (l *LinkedList) String() string
type Node ยถ
A doubly linked list node.
type UniqueDeque ยถ
type UniqueDeque struct {
// contains filtered or unexported fields
}
func NewUniqueDeque ยถ
func NewUniqueDeque() *UniqueDeque
A double ended queue that only allows unique items inside. Constructed from a doubly linked list and a linear hash table.
func (*UniqueDeque) Backwards ยถ
func (l *UniqueDeque) Backwards() (it types.KIterator)
func (*UniqueDeque) DequeFront ยถ
func (l *UniqueDeque) DequeFront() (item types.Hashable, err error)
func (*UniqueDeque) EnqueFront ยถ
func (l *UniqueDeque) EnqueFront(item types.Hashable) (err error)
func (*UniqueDeque) Equals ยถ
func (l *UniqueDeque) Equals(b types.Equatable) bool
Can be compared to any types.IterableContainer
func (*UniqueDeque) First ยถ
func (l *UniqueDeque) First() (item types.Hashable)
func (*UniqueDeque) Hash ยถ
func (l *UniqueDeque) Hash() int
func (*UniqueDeque) Items ยถ
func (l *UniqueDeque) Items() (it types.KIterator)
func (*UniqueDeque) Last ยถ
func (l *UniqueDeque) Last() (item types.Hashable)
func (*UniqueDeque) Less ยถ
func (l *UniqueDeque) Less(b types.Sortable) bool
Can be compared to any types.IterableContainer
func (*UniqueDeque) Size ยถ
func (l *UniqueDeque) Size() int
func (*UniqueDeque) String ยถ
func (l *UniqueDeque) String() string
Click to show internal directories.
Click to hide internal directories.