aiplan_vector_int

package
v0.0.0-...-d7572e3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTML_tableheader = `<tr>
		<th>Name</th>
		<th>Value</th>
		</tr>`
	HTML_row = `<tr>
		<td>{{AIPlanIndex $i}}</td>
		<td>{{$v}}</td>
		</tr>
		`
)

Variables

View Source
var IndexFn = template.FuncMap{
	"AIPlanIndex": Index,
}

Functions

func Index

func Index(i int) string

Types

type AIPlanVector_int

type AIPlanVector_int [aiplan.AIPlan_Count]int

func (*AIPlanVector_int) Add

func (es *AIPlanVector_int) Add(e aiplan.AIPlan, v int)

func (*AIPlanVector_int) Dec

func (es *AIPlanVector_int) Dec(e aiplan.AIPlan)

func (AIPlanVector_int) Get

func (es AIPlanVector_int) Get(e aiplan.AIPlan) int

func (*AIPlanVector_int) Inc

func (es *AIPlanVector_int) Inc(e aiplan.AIPlan)

func (AIPlanVector_int) Iter

func (es AIPlanVector_int) Iter(fn func(i aiplan.AIPlan, v int) bool) bool

Iter return true if iter stop, return false if iter all fn return true to stop iter

func (*AIPlanVector_int) SetIfGt

func (es *AIPlanVector_int) SetIfGt(e aiplan.AIPlan, v int)

func (AIPlanVector_int) String

func (es AIPlanVector_int) String() string

func (*AIPlanVector_int) ToWeb

func (AIPlanVector_int) VectorAdd

VectorAdd add element to element

func (AIPlanVector_int) VectorSub

VectorSub sub element to element

Jump to

Keyboard shortcuts

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