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