Documentation ¶
Index ¶
- type Entry
- type Interval
- type IntervalST
- func (t *IntervalST) Contains(interval Interval) bool
- func (t *IntervalST) Get(interval Interval) interface{}
- func (t *IntervalST) Put(interval Interval, value interface{})
- func (t *IntervalST) Search(p Position) (*Interval, interface{})
- func (t *IntervalST) SearchAll(p Position) []Entry
- func (t *IntervalST) SearchInterval(interval Interval) (*Interval, interface{})
- func (t *IntervalST) Values() []interface{}
- type MinPosition
- type Position
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interval ¶
type Interval struct {
Min, Max Position
}
func NewInterval ¶
func (Interval) Intersects ¶
type IntervalST ¶
type IntervalST struct {
// contains filtered or unexported fields
}
func (*IntervalST) Contains ¶
func (t *IntervalST) Contains(interval Interval) bool
func (*IntervalST) Get ¶
func (t *IntervalST) Get(interval Interval) interface{}
func (*IntervalST) Put ¶
func (t *IntervalST) Put(interval Interval, value interface{})
Put associates an interval with a value.
NOTE: does *not* check if the interval already exists
func (*IntervalST) Search ¶
func (t *IntervalST) Search(p Position) (*Interval, interface{})
func (*IntervalST) SearchAll ¶ added in v0.16.0
func (t *IntervalST) SearchAll(p Position) []Entry
func (*IntervalST) SearchInterval ¶
func (t *IntervalST) SearchInterval(interval Interval) (*Interval, interface{})
func (*IntervalST) Values ¶
func (t *IntervalST) Values() []interface{}
type MinPosition ¶
type MinPosition struct{}
func (MinPosition) Compare ¶
func (MinPosition) Compare(other Position) int
Click to show internal directories.
Click to hide internal directories.