| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"container/heap" |
| 10 |
"reflect" |
| 11 |
) |
| 12 |
|
| 13 |
func init() { |
| 14 |
Symbols["container/heap/heap"] = map[string]reflect.Value{ |
| 15 |
|
| 16 |
"Fix": reflect.ValueOf(heap.Fix), |
| 17 |
"Init": reflect.ValueOf(heap.Init), |
| 18 |
"Pop": reflect.ValueOf(heap.Pop), |
| 19 |
"Push": reflect.ValueOf(heap.Push), |
| 20 |
"Remove": reflect.ValueOf(heap.Remove), |
| 21 |
|
| 22 |
|
| 23 |
"Interface": reflect.ValueOf((*heap.Interface)(nil)), |
| 24 |
|
| 25 |
|
| 26 |
"_Interface": reflect.ValueOf((*_container_heap_Interface)(nil)), |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
|
| 31 |
type _container_heap_Interface struct { |
| 32 |
IValue interface{} |
| 33 |
WLen func() int |
| 34 |
WLess func(i int, j int) bool |
| 35 |
WPop func() any |
| 36 |
WPush func(x any) |
| 37 |
WSwap func(i int, j int) |
| 38 |
} |
| 39 |
|
| 40 |
func (W _container_heap_Interface) Len() int { return W.WLen() } |
| 41 |
func (W _container_heap_Interface) Less(i int, j int) bool { return W.WLess(i, j) } |
| 42 |
func (W _container_heap_Interface) Pop() any { return W.WPop() } |
| 43 |
func (W _container_heap_Interface) Push(x any) { W.WPush(x) } |
| 44 |
func (W _container_heap_Interface) Swap(i int, j int) { W.WSwap(i, j) } |