Documentation
¶
Index ¶
- Constants
- Variables
- func Index(i int) string
- type CarryingObjectTypeVector_int
- func (es *CarryingObjectTypeVector_int) Add(e carryingobjecttype.CarryingObjectType, v int)
- func (es *CarryingObjectTypeVector_int) Dec(e carryingobjecttype.CarryingObjectType)
- func (es CarryingObjectTypeVector_int) Get(e carryingobjecttype.CarryingObjectType) int
- func (es *CarryingObjectTypeVector_int) Inc(e carryingobjecttype.CarryingObjectType)
- func (es CarryingObjectTypeVector_int) Iter(fn func(i carryingobjecttype.CarryingObjectType, v int) bool) bool
- func (es *CarryingObjectTypeVector_int) SetIfGt(e carryingobjecttype.CarryingObjectType, v int)
- func (es CarryingObjectTypeVector_int) String() string
- func (es *CarryingObjectTypeVector_int) ToWeb(w http.ResponseWriter, r *http.Request) error
- func (es CarryingObjectTypeVector_int) VectorAdd(arg CarryingObjectTypeVector_int) CarryingObjectTypeVector_int
- func (es CarryingObjectTypeVector_int) VectorSub(arg CarryingObjectTypeVector_int) CarryingObjectTypeVector_int
Constants ¶
View Source
const ( HTML_tableheader = `<tr> <th>Name</th> <th>Value</th> </tr>` HTML_row = `<tr> <td>{{CarryingObjectTypeIndex $i}}</td> <td>{{$v}}</td> </tr> ` )
Variables ¶
View Source
var IndexFn = template.FuncMap{ "CarryingObjectTypeIndex": Index, }
Functions ¶
Types ¶
type CarryingObjectTypeVector_int ¶
type CarryingObjectTypeVector_int [carryingobjecttype.CarryingObjectType_Count]int
func (*CarryingObjectTypeVector_int) Add ¶
func (es *CarryingObjectTypeVector_int) Add(e carryingobjecttype.CarryingObjectType, v int)
func (*CarryingObjectTypeVector_int) Dec ¶
func (es *CarryingObjectTypeVector_int) Dec(e carryingobjecttype.CarryingObjectType)
func (CarryingObjectTypeVector_int) Get ¶
func (es CarryingObjectTypeVector_int) Get(e carryingobjecttype.CarryingObjectType) int
func (*CarryingObjectTypeVector_int) Inc ¶
func (es *CarryingObjectTypeVector_int) Inc(e carryingobjecttype.CarryingObjectType)
func (CarryingObjectTypeVector_int) Iter ¶
func (es CarryingObjectTypeVector_int) Iter(fn func(i carryingobjecttype.CarryingObjectType, v int) bool) bool
Iter return true if iter stop, return false if iter all fn return true to stop iter
func (*CarryingObjectTypeVector_int) SetIfGt ¶
func (es *CarryingObjectTypeVector_int) SetIfGt(e carryingobjecttype.CarryingObjectType, v int)
func (CarryingObjectTypeVector_int) String ¶
func (es CarryingObjectTypeVector_int) String() string
func (*CarryingObjectTypeVector_int) ToWeb ¶
func (es *CarryingObjectTypeVector_int) ToWeb(w http.ResponseWriter, r *http.Request) error
func (CarryingObjectTypeVector_int) VectorAdd ¶
func (es CarryingObjectTypeVector_int) VectorAdd(arg CarryingObjectTypeVector_int) CarryingObjectTypeVector_int
VectorAdd add element to element
func (CarryingObjectTypeVector_int) VectorSub ¶
func (es CarryingObjectTypeVector_int) VectorSub(arg CarryingObjectTypeVector_int) CarryingObjectTypeVector_int
VectorSub sub element to element
Click to show internal directories.
Click to hide internal directories.