elem

package
v0.0.0-...-a89a7b4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	// contains filtered or unexported fields
}

func NewElement

func NewElement(id Id, v any) *Element

func NewPropagationElement

func NewPropagationElement(propMax int) *Element

func (*Element) Id

func (e *Element) Id() Id

func (*Element) IsValid

func (e *Element) IsValid() bool

func (*Element) Level

func (e *Element) Level() int

func (*Element) New

func (e *Element) New(v any) *Element

func (*Element) NewInvalid

func (e *Element) NewInvalid() *Element

func (*Element) Propagation

func (e *Element) Propagation() int

func (*Element) SetInvalid

func (e *Element) SetInvalid()

func (*Element) SetMax

func (e *Element) SetMax(n int)

func (*Element) String

func (e *Element) String() string

func (*Element) V

func (e *Element) V() any

type Elements

type Elements interface {
	SetKnown()
	Elements(yield func(*Element) bool)
	Values(yield func(any) bool)
	IsComplete() bool
	Add(v *Element)
	Iterator() Iterator

	SetKnownSize(n int)
	// contains filtered or unexported methods
}

func NewElements

func NewElements() Elements

func NewKnownElements

func NewKnownElements(n int) Elements

func NewSingle

func NewSingle(base Id) Elements

type Id

type Id []Level

func NewId

func NewId(i int, max int) Id

func (Id) Add

func (i Id) Add(l Level) Id

func (Id) Add2

func (i Id) Add2(no, max int) Id

func (Id) Len

func (i Id) Len() int

func (Id) String

func (i Id) String() string

func (Id) WithMax

func (i Id) WithMax(max int) Id

type Iterator

type Iterator interface {
	HasNext() (avail bool, completed bool)
	Next() *Element
	HasEndReached() bool
}

type Level

type Level struct {
	// contains filtered or unexported fields
}

func NewLevel

func NewLevel(no int, max int) Level

func (Level) Max

func (l Level) Max() int

func (Level) No

func (l Level) No() int

func (Level) String

func (l Level) String() string

type StableChannel

type StableChannel struct {
	// contains filtered or unexported fields
}

func NewStableChannel

func NewStableChannel(elems Elements) *StableChannel

func (*StableChannel) Close

func (c *StableChannel) Close()

func (*StableChannel) Get

func (c *StableChannel) Get() *Element

func (*StableChannel) Iterator

func (c *StableChannel) Iterator(yield func(v *Element) bool)

func (*StableChannel) Put

func (c *StableChannel) Put(e *Element)

func (*StableChannel) SetInputSize

func (c *StableChannel) SetInputSize(n int)

Jump to

Keyboard shortcuts

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