Lines Matching defs:List
48 type List struct { struct
49 root Element // sentinel list element, only &root, root.prev, and root.next are used
50 len int // current list length excluding (this) sentinel element
54 func (l *List) Init() *List {
65 func (l *List) Len() int { return l.len }
68 func (l *List) Front() *Element {
76 func (l *List) Back() *Element {
84 func (l *List) lazyInit() {
91 func (l *List) insert(e, at *Element) *Element {
103 func (l *List) insertValue(v interface{}, at *Element) *Element {
108 func (l *List) remove(e *Element) *Element {
120 func (l *List) Remove(e *Element) interface{} {
130 func (l *List) PushFront(v interface{}) *Element {
136 func (l *List) PushBack(v interface{}) *Element {
143 func (l *List) InsertBefore(v interface{}, mark *Element) *Element {
153 func (l *List) InsertAfter(v interface{}, mark *Element) *Element {
163 func (l *List) MoveToFront(e *Element) {
173 func (l *List) MoveToBack(e *Element) {
183 func (l *List) PushBackList(other *List) {
192 func (l *List) PushFrontList(other *List) {