Documentation
¶
Index ¶
- Constants
- type HeadedLazySortedList
- func (r *HeadedLazySortedList) Add(item interface{})
- func (r *HeadedLazySortedList) CutOffHead(headLenReduction int) []interface{}
- func (r *HeadedLazySortedList) CutOffHeadByLen(headLen int) []interface{}
- func (r *HeadedLazySortedList) CutOffHeadByLenInto(headCutLen int, to []interface{}) []interface{}
- func (r *HeadedLazySortedList) CutOffHeadInto(headLenReduction int, to []interface{}) []interface{}
- func (r *HeadedLazySortedList) Flush() []interface{}
- func (r *HeadedLazySortedList) Get(index int) interface{}
- func (r *HeadedLazySortedList) GetAvailableHeadLen(headLenReduction int) int
- func (r *HeadedLazySortedList) GetHeadLen() int
- func (r *HeadedLazySortedList) GetReversedHead(relIndex int) interface{}
- func (r *HeadedLazySortedList) HasFullHead(headLenReduction int) bool
- func (r *HeadedLazySortedList) Len() int
- func (r *HeadedLazySortedList) SortAll()
- type LessFunc
Constants ¶
View Source
const ( Sorted sortState = iota UnsortedTail UnsortedAll )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeadedLazySortedList ¶
type HeadedLazySortedList struct {
// contains filtered or unexported fields
}
func NewHeadedLazySortedList ¶
func NewHeadedLazySortedList(headLen int, less LessFunc, capacity int) HeadedLazySortedList
func (*HeadedLazySortedList) Add ¶
func (r *HeadedLazySortedList) Add(item interface{})
func (*HeadedLazySortedList) CutOffHead ¶
func (r *HeadedLazySortedList) CutOffHead(headLenReduction int) []interface{}
func (*HeadedLazySortedList) CutOffHeadByLen ¶
func (r *HeadedLazySortedList) CutOffHeadByLen(headLen int) []interface{}
func (*HeadedLazySortedList) CutOffHeadByLenInto ¶
func (r *HeadedLazySortedList) CutOffHeadByLenInto(headCutLen int, to []interface{}) []interface{}
func (*HeadedLazySortedList) CutOffHeadInto ¶
func (r *HeadedLazySortedList) CutOffHeadInto(headLenReduction int, to []interface{}) []interface{}
func (*HeadedLazySortedList) Flush ¶
func (r *HeadedLazySortedList) Flush() []interface{}
func (*HeadedLazySortedList) Get ¶
func (r *HeadedLazySortedList) Get(index int) interface{}
func (*HeadedLazySortedList) GetAvailableHeadLen ¶
func (r *HeadedLazySortedList) GetAvailableHeadLen(headLenReduction int) int
func (*HeadedLazySortedList) GetHeadLen ¶
func (r *HeadedLazySortedList) GetHeadLen() int
func (*HeadedLazySortedList) GetReversedHead ¶
func (r *HeadedLazySortedList) GetReversedHead(relIndex int) interface{}
func (*HeadedLazySortedList) HasFullHead ¶
func (r *HeadedLazySortedList) HasFullHead(headLenReduction int) bool
func (*HeadedLazySortedList) Len ¶
func (r *HeadedLazySortedList) Len() int
func (*HeadedLazySortedList) SortAll ¶
func (r *HeadedLazySortedList) SortAll()
Click to show internal directories.
Click to hide internal directories.