Documentation ¶
Overview ¶
并发安全的双向链表.
Index ¶
- type List
- func (this *List) Back() *list.Element
- func (this *List) BackAll() []interface{}
- func (this *List) BackItem() interface{}
- func (this *List) BatchPopBack(max int) []interface{}
- func (this *List) BatchPopFront(max int) []interface{}
- func (this *List) BatchPushFront(vs []interface{})
- func (this *List) Front() *list.Element
- func (this *List) FrontAll() []interface{}
- func (this *List) FrontItem() interface{}
- func (this *List) InsertAfter(v interface{}, mark *list.Element) *list.Element
- func (this *List) InsertBefore(v interface{}, mark *list.Element) *list.Element
- func (this *List) Len() int
- func (this *List) PopBack() interface{}
- func (this *List) PopBackAll() []interface{}
- func (this *List) PopFront() interface{}
- func (this *List) PopFrontAll() []interface{}
- func (this *List) PushBack(v interface{}) *list.Element
- func (this *List) PushFront(v interface{}) *list.Element
- func (this *List) Remove(e *list.Element) interface{}
- func (this *List) RemoveAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
变长双向链表
func (*List) BatchPopFront ¶
批量从链表头端出栈数据项(删除)
func (*List) InsertAfter ¶
在list 中元素mark之后插入一个值为v的元素,并返回该元素,如果mark不是list中元素,则list不改变。
func (*List) InsertBefore ¶
在list 中元素mark之前插入一个值为v的元素,并返回该元素,如果mark不是list中元素,则list不改变。
Click to show internal directories.
Click to hide internal directories.