modifier

package
v0.0.0-...-c0f9bd9 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2014 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SingleModifier

type SingleModifier struct {
	ModifierFunc SingleModifierFunc
}

IwModifier is a common int value function modifier Mostly, for test purposes

func (*SingleModifier) Modify

func (swm *SingleModifier) Modify(weight data.Weight, params data.Parameters) data.Weight

Modify is a Modifier interface implementation

type SingleModifierFunc

type SingleModifierFunc func(data.Comparable) data.Comparable

SingleModifierFunc is a function definition to modify value

type Static

type Static struct {
	Value data.Weight
}

Static modifier returns predefined value

func (*Static) Modify

func (s *Static) Modify(data.Weight, data.Parameters) data.Weight

Modify is a Modifier interface implementation

Jump to

Keyboard shortcuts

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