list2

package
v0.0.0-...-bdc7756 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Value interface{}
	// contains filtered or unexported fields
}

func (*Element) Next

func (e *Element) Next() *Element

func (*Element) Prev

func (e *Element) Prev() *Element

type List

type List struct {
	// contains filtered or unexported fields
}

static linked list based array

func New

func New() *List

func NewSize

func NewSize(size int) *List

func (*List) Back

func (l *List) Back() *Element

func (*List) Front

func (l *List) Front() *Element

func (*List) InsertAfter

func (l *List) InsertAfter(v interface{}, mark *Element) *Element

func (*List) InsertBefore

func (l *List) InsertBefore(v interface{}, mark *Element) *Element

func (*List) Len

func (l *List) Len() int

func (*List) MoveAfter

func (l *List) MoveAfter(e, mark *Element)

func (*List) MoveBefore

func (l *List) MoveBefore(e, mark *Element)

func (*List) MoveToBack

func (l *List) MoveToBack(e *Element)

func (*List) MoveToFront

func (l *List) MoveToFront(e *Element)

func (*List) PushBack

func (l *List) PushBack(v interface{}) *Element

func (*List) PushBackList

func (l *List) PushBackList(other *List)

func (*List) PushFront

func (l *List) PushFront(v interface{}) *Element

func (*List) PushFrontList

func (l *List) PushFrontList(other *List)

func (*List) Remove

func (l *List) Remove(e *Element) interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL