Documentation
¶
Overview ¶
ContainerListWriter is a base of http://golang.org/pkg/container/list/ this is tuning performancem, reduce heap usage. Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
- type Sample
- func (d *Sample) Add(n *Sample) *Sample
- func (d *Sample) Back() *Sample
- func (d *Sample) ContainOf(ptr *list_head.ListHead) *Sample
- func (d *Sample) Delete() *Sample
- func (l *Sample) Each(fn func(e *Sample))
- func (d *Sample) Front() *Sample
- func (d *Sample) Init()
- func (l *Sample) InsertAfter(v *Sample) *Sample
- func (l *Sample) InsertBefore(v *Sample) *Sample
- func (d *Sample) Len() int
- func (l *Sample) MoveAfter(v *Sample) *Sample
- func (l *Sample) MoveBefore(v *Sample) *Sample
- func (l *Sample) MoveToBack(v *Sample) *Sample
- func (l *Sample) MoveToFront(v *Sample) *Sample
- func (d *Sample) Next() *Sample
- func (d *Sample) Prev() *Sample
- func (l *Sample) PushBack(v *Sample) *Sample
- func (l *Sample) PushBackList(other *Sample)
- func (d *Sample) PushFront(v *Sample) *Sample
- func (l *Sample) PushFrontList(other *Sample)
- func (d *Sample) Remove() *Sample
- type SampleParent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sample ¶
type Sample struct { ID int Name string Parent *SampleParent list_head.ListHead }
func (*Sample) 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 (*Sample) 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 (*Sample) 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 (*Sample) 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 (*Sample) MoveToBack ¶
func (*Sample) 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 (*Sample) PushBack ¶
PushBack inserts a new element e with value v at the back of list l and returns e.
func (*Sample) PushBackList ¶
func (*Sample) PushFrontList ¶
type SampleParent ¶
type SampleParent struct {
Name string
}