Documentation ¶
Index ¶
- type SortedList
- func (sl *SortedList) Init()
- func (sl *SortedList) Len() int
- func (sl *SortedList) PopMaxWeight() (weight int64, value interface{}, exist bool)
- func (sl *SortedList) PopMinWeight() (weight int64, value interface{}, exist bool)
- func (sl *SortedList) Println()
- func (sl *SortedList) Push(weight int64, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortedList ¶
type SortedList struct {
// contains filtered or unexported fields
}
func NewSortedList ¶
func NewSortedList() *SortedList
func (*SortedList) Init ¶
func (sl *SortedList) Init()
func (*SortedList) Len ¶
func (sl *SortedList) Len() int
func (*SortedList) PopMaxWeight ¶
func (sl *SortedList) PopMaxWeight() (weight int64, value interface{}, exist bool)
func (*SortedList) PopMinWeight ¶
func (sl *SortedList) PopMinWeight() (weight int64, value interface{}, exist bool)
func (*SortedList) Println ¶
func (sl *SortedList) Println()
func (*SortedList) Push ¶
func (sl *SortedList) Push(weight int64, value interface{})
Click to show internal directories.
Click to hide internal directories.