iterator

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BidIterator

type BidIterator[T any] interface {
	ConstBidIterator[T]
	SetValue(value T)
}

BidIterator is an interface of mutable bidirectional iterator

type ConstBidIterator

type ConstBidIterator[T any] interface {
	ConstIterator[T]
	Prev() ConstBidIterator[T]
}

ConstBidIterator is an interface of const bidirectional iterator

type ConstIterator

type ConstIterator[T any] interface {
	IsValid() bool
	Next() ConstIterator[T]
	Value() T
	Clone() ConstIterator[T]
	Equal(other ConstIterator[T]) bool
}

ConstIterator is an interface of const iterator

type ConstKvBidIterator

type ConstKvBidIterator[K, V any] interface {
	ConstKvIterator[K, V]
	BidIterator[V]
}

ConstKvBidIterator is an interface of const key-value type bidirectional iterator

type ConstKvIterator

type ConstKvIterator[K, V any] interface {
	ConstIterator[V]
	Key() K
}

ConstKvIterator is an interface of const key-value type iterator

type Iterator

type Iterator[T any] interface {
	ConstIterator[T]
	SetValue(value T)
}

Iterator is an interface of mutable iterator

type KvBidIterator

type KvBidIterator[K, V any] interface {
	KvIterator[K, V]
	BidIterator[V]
}

KvBidIterator is an interface of mutable key-value type bidirectional iterator

type KvIterator

type KvIterator[K, V any] interface {
	ConstKvIterator[K, V]
	SetValue(value V)
}

KvIterator is an interface of mutable key-value type iterator

type RandomAccessIterator

type RandomAccessIterator[T any] interface {
	BidIterator[T]
	//IteratorAt returns a new iterator at position
	IteratorAt(position int) RandomAccessIterator[T]
	Position() int
}

RandomAccessIterator is an interface of mutable random access iterator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL