Documentation ¶
Index ¶
- type DLList
- func (l *DLList) Back() *DLNode
- func (l *DLList) Front() *DLNode
- func (l *DLList) Init() *DLList
- func (l *DLList) InsertAfter(v ValType, mark *DLNode) *DLNode
- func (l *DLList) InsertBefore(v ValType, mark *DLNode) *DLNode
- func (l *DLList) Len() int
- func (l *DLList) MoveAfter(e, mark *DLNode)
- func (l *DLList) MoveBefore(e, mark *DLNode)
- func (l *DLList) MoveToBack(e *DLNode)
- func (l *DLList) MoveToFront(e *DLNode)
- func (l *DLList) PushBack(v ValType) *DLNode
- func (l *DLList) PushBackList(other *DLList)
- func (l *DLList) PushFront(v ValType) *DLNode
- func (l *DLList) PushFrontList(other *DLList)
- func (l *DLList) Remove(e *DLNode) interface{}
- type DLNode
- type ValType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DLList ¶
type DLList struct {
// contains filtered or unexported fields
}
DLList represents a doubly linked list
func (*DLList) InsertAfter ¶
InsertAfter inserts a new element e with value v immediately after mark (must not be nil!) and returns e
func (*DLList) InsertBefore ¶
InsertBefore inserts a new element e with value v immediately before mark (must not be nil!) and returns e
func (*DLList) MoveAfter ¶
MoveAfter moves element e to its new position after mark (e or mark must not be nil!)
func (*DLList) MoveBefore ¶
MoveBefore moves element e to its new position before mark (e or mark must not be nil!)
func (*DLList) MoveToBack ¶
MoveToBack moves element e (must not be nil!) to the back of list l.
func (*DLList) MoveToFront ¶
MoveToFront moves element e (must not be nil!) to the front of list l
func (*DLList) PushBack ¶
PushBack inserts a new element e with value v at the back of list l and returns e
func (*DLList) PushBackList ¶
PushBackList inserts a copy of another list at the back of list l The lists l and other may be the same (must not be nil!)
func (*DLList) PushFront ¶
PushFront inserts a new element e with value v at the front of list l and returns e
func (*DLList) PushFrontList ¶
PushFrontList inserts a copy of another list at the front of list l The lists l and other may be the same (must not be nil!)