Documentation
¶
Index ¶
- type ListEntry
- func (d *ListEntry) Add(n *ListEntry) *ListEntry
- func (d *ListEntry) Back() *ListEntry
- func (d *ListEntry) ContainOf(ptr *list_head.ListHead) *ListEntry
- func (d *ListEntry) Delete() *ListEntry
- func (l *ListEntry) Each(fn func(e *ListEntry))
- func (d *ListEntry) Front() *ListEntry
- func (d *ListEntry) Init()
- func (l *ListEntry) InsertAfter(v *ListEntry) *ListEntry
- func (l *ListEntry) InsertBefore(v *ListEntry) *ListEntry
- func (d *ListEntry) Len() int
- func (l *ListEntry) MoveAfter(v *ListEntry) *ListEntry
- func (l *ListEntry) MoveBefore(v *ListEntry) *ListEntry
- func (l *ListEntry) MoveToBack(v *ListEntry) *ListEntry
- func (l *ListEntry) MoveToFront(v *ListEntry) *ListEntry
- func (d *ListEntry) Next() *ListEntry
- func (d *ListEntry) Prev() *ListEntry
- func (l *ListEntry) PushBack(v *ListEntry) *ListEntry
- func (l *ListEntry) PushBackList(other *ListEntry)
- func (d *ListEntry) PushFront(v *ListEntry) *ListEntry
- func (l *ListEntry) PushFrontList(other *ListEntry)
- func (d *ListEntry) Remove() *ListEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListEntry ¶
ListEntry ... dummy struct.liked-list like a kernel list head.
func NewListEntryList ¶
NewListEntryList ... New returns an initialized list.
func (*ListEntry) InsertAfter ¶
InsertAfter ... inserts a new element e with value v immediately after mark and returns e. If mark is not an element of l, the list is not modified.
func (*ListEntry) InsertBefore ¶
InsertBefore inserts a new element e with value v immediately before mark and returns e. If mark is not an element of l, the list is not modified.
func (*ListEntry) MoveAfter ¶
MoveAfter ... moves element e to its new position after mark. If e is not an element of l, or e == mark, the list is not modified.
func (*ListEntry) MoveBefore ¶
MoveBefore ... moves element e to its new position before mark. If e or mark is not an element of l, or e == mark, the list is not modified.
func (*ListEntry) MoveToBack ¶
MoveToBack ... moves element e to later of list l. If e is not an element of l, the list is not modified.
func (*ListEntry) MoveToFront ¶
MoveToFront ... moves element e to the front of list l. If e is not an element of l, the list is not modified.
func (*ListEntry) PushBack ¶
PushBack ... inserts a new element e with value v at the back of list l and returns e.
func (*ListEntry) PushBackList ¶
func (*ListEntry) PushFront ¶
PushFront ... inserts a new value v at the front of list l and returns e.