sum

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Methods

type Methods[N number.Any, Traits number.Traits[N], M Monotonicity] struct{}

func (Methods[N, Traits, M]) Copy

func (Methods[N, Traits, M]) Copy(from, to *State[N, Traits, M])

func (Methods[N, Traits, M]) HasChange

func (Methods[N, Traits, M]) HasChange(ptr *State[N, Traits, M]) bool

func (Methods[N, Traits, M]) Init

func (Methods[N, Traits, M]) Init(state *State[N, Traits, M], _ aggregator.Config)

func (Methods[N, Traits, M]) Kind

func (Methods[N, Traits, M]) Kind() aggregation.Kind

func (Methods[N, Traits, M]) Merge

func (Methods[N, Traits, M]) Merge(from, to *State[N, Traits, M])

func (Methods[N, Traits, M]) Move

func (Methods[N, Traits, M]) Move(from, to *State[N, Traits, M])

func (Methods[N, Traits, M]) SubtractSwap

func (Methods[N, Traits, M]) SubtractSwap(operand, argument *State[N, Traits, M])

func (Methods[N, Traits, M]) ToAggregation

func (Methods[N, Traits, M]) ToAggregation(state *State[N, Traits, M]) aggregation.Aggregation

func (Methods[N, Traits, M]) ToStorage

func (Methods[N, Traits, M]) ToStorage(aggr aggregation.Aggregation) (*State[N, Traits, M], bool)

func (Methods[N, Traits, M]) Update

func (Methods[N, Traits, M]) Update(state *State[N, Traits, M], value N)

type Monotonic

type Monotonic struct{}

type MonotonicFloat64

type MonotonicFloat64 = State[float64, number.Float64Traits, Monotonic]

func NewMonotonicFloat64

func NewMonotonicFloat64(x float64) *MonotonicFloat64

type MonotonicFloat64Methods

type MonotonicFloat64Methods = Methods[float64, number.Float64Traits, Monotonic]

type MonotonicInt64

type MonotonicInt64 = State[int64, number.Int64Traits, Monotonic]

func NewMonotonicInt64

func NewMonotonicInt64(x int64) *MonotonicInt64

type MonotonicInt64Methods

type MonotonicInt64Methods = Methods[int64, number.Int64Traits, Monotonic]

type Monotonicity

type Monotonicity interface {
	// contains filtered or unexported methods
}

type NonMonotonic

type NonMonotonic struct{}

type NonMonotonicFloat64

type NonMonotonicFloat64 = State[float64, number.Float64Traits, NonMonotonic]

func NewNonMonotonicFloat64

func NewNonMonotonicFloat64(x float64) *NonMonotonicFloat64

type NonMonotonicFloat64Methods

type NonMonotonicFloat64Methods = Methods[float64, number.Float64Traits, NonMonotonic]

type NonMonotonicInt64

type NonMonotonicInt64 = State[int64, number.Int64Traits, NonMonotonic]

func NewNonMonotonicInt64

func NewNonMonotonicInt64(x int64) *NonMonotonicInt64

type NonMonotonicInt64Methods

type NonMonotonicInt64Methods = Methods[int64, number.Int64Traits, NonMonotonic]

type State

type State[N number.Any, Traits number.Traits[N], M Monotonicity] struct {
	// contains filtered or unexported fields
}

func (*State[N, Traits, M]) IsMonotonic

func (s *State[N, Traits, M]) IsMonotonic() bool

func (*State[N, Traits, M]) Kind

func (s *State[N, Traits, M]) Kind() aggregation.Kind

func (*State[N, Traits, M]) Sum

func (s *State[N, Traits, M]) Sum() number.Number

Jump to

Keyboard shortcuts

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