Documentation ¶
Index ¶
- Constants
- type Element
- type EmptyElement
- type SkipItem
- type SkipList
- func (list *SkipList) Before(item *SkipItem) *SkipItem
- func (list *SkipList) Delete(key float64) bool
- func (list *SkipList) Empty() bool
- func (list *SkipList) Find(key float64) (Element, bool)
- func (list *SkipList) FindBiggerOrEqual(key float64) (Element, bool)
- func (list *SkipList) FindBiggerOrEqualItem(key float64) (*SkipItem, bool)
- func (list *SkipList) FindItem(key float64) (*SkipItem, bool)
- func (list *SkipList) Insert(element Element)
- func (list *SkipList) Maximal() *SkipItem
- func (list *SkipList) Minimal() *SkipItem
- func (list *SkipList) Next(item *SkipItem) *SkipItem
- func (list *SkipList) Size() int
- func (list *SkipList) String() string
Constants ¶
View Source
const ( RecommendedEps = 1e-9 MaxLevel = 40 )
View Source
const ( FormatLen = 5 FormatBits = 64 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyElement ¶
type EmptyElement int
func (EmptyElement) ExtendedKey ¶
func (e EmptyElement) ExtendedKey() float64
type SkipList ¶
type SkipList struct {
// contains filtered or unexported fields
}
func NewSkipList ¶
func (*SkipList) FindBiggerOrEqual ¶
func (*SkipList) FindBiggerOrEqualItem ¶
Click to show internal directories.
Click to hide internal directories.