stats

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	// contains filtered or unexported fields
}

func (*Column) ColumnIndex

func (c *Column) ColumnIndex() uint16

func (Column) Equals

func (c Column) Equals(o Column) bool

func (*Column) GetSummary

func (c *Column) GetSummary() []uint16

func (*Column) GetSummaryByValue

func (c *Column) GetSummaryByValue(value uint8) uint16

func (Column) String

func (c Column) String() string

func (*Column) StringFmt

func (c *Column) StringFmt(fmtFn RowValueFormatFunc) string

type Row

type Row struct {
	// contains filtered or unexported fields
}

func NewStatRow

func NewStatRow(maxValue uint8, columns int) Row

func (*Row) CanUpdate

func (r *Row) CanUpdate() bool

func (*Row) ColumnCount

func (r *Row) ColumnCount() int

func (*Row) Equals

func (r *Row) Equals(o *Row) bool

func (*Row) Get

func (r *Row) Get(column int) uint8

func (*Row) GetCustomOptions

func (r *Row) GetCustomOptions() uint32

func (*Row) GetRowIndex

func (r *Row) GetRowIndex() int

func (*Row) GetSummary

func (r *Row) GetSummary() []uint16

func (*Row) GetSummaryByValue

func (r *Row) GetSummaryByValue(value uint8) uint16

func (*Row) HasAllValues

func (r *Row) HasAllValues(value uint8) bool

func (*Row) HasAllValuesOf

func (r *Row) HasAllValuesOf(value0, value1 uint8) bool

func (*Row) HasValues

func (r *Row) HasValues(value uint8) bool

func (*Row) IsEmpty

func (r *Row) IsEmpty() bool

func (*Row) Len

func (r *Row) Len() int

func (*Row) MaxValue

func (r *Row) MaxValue() uint8

func (*Row) Set

func (r *Row) Set(column int, value uint8) uint8

func (*Row) SetCustomOptions

func (r *Row) SetCustomOptions(v uint32)

func (*Row) String

func (r *Row) String() string

func (*Row) StringFmt

func (r *Row) StringFmt(fmtFn RowValueFormatFunc, summaryPrefixes bool) string

func (*Row) StringSummaryFmt

func (r *Row) StringSummaryFmt(fmtFn RowValueFormatFunc) string

type RowValueFormatFunc

type RowValueFormatFunc func(v uint8) string

type StatTable

type StatTable struct {
	// contains filtered or unexported fields
}

func NewStatTable

func NewStatTable(maxValue uint8, columns int) StatTable

func (*StatTable) AddRow

func (t *StatTable) AddRow(row *Row) int

func (*StatTable) AsText

func (t *StatTable) AsText(header string) string

func (*StatTable) ColumnCount

func (t *StatTable) ColumnCount() int

func (*StatTable) Equals

func (t *StatTable) Equals(o *StatTable) bool

func (*StatTable) GetColumn

func (t *StatTable) GetColumn(colIndex int) *Column

func (*StatTable) GetRow

func (t *StatTable) GetRow(rowIndex int) (row *Row, ok bool)

func (*StatTable) GetSummary

func (t *StatTable) GetSummary() []uint32

func (*StatTable) GetSummaryByValue

func (t *StatTable) GetSummaryByValue(value uint8) uint32

func (*StatTable) MaxValue

func (t *StatTable) MaxValue() uint8

func (*StatTable) NewRow

func (t *StatTable) NewRow() *Row

func (*StatTable) PutRow

func (t *StatTable) PutRow(rowIndex int, row *Row)

func (*StatTable) RemoveRow

func (t *StatTable) RemoveRow(rowIndex int) (ok bool)

func (*StatTable) RowCount

func (t *StatTable) RowCount() int

func (*StatTable) String

func (t *StatTable) String() string

func (*StatTable) TableFmt

func (t *StatTable) TableFmt(header string, fmtFn RowValueFormatFunc) string

Jump to

Keyboard shortcuts

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