Documentation
¶
Index ¶
- Variables
- type AccessError
- type Accessor
- type BatchDeletionError
- type BatchOperationError
- type DefaultTableEvents
- type ElementType
- type ElementTypeID
- type Entry
- type EntryID
- type EntryIndex
- type InvalidElementAccessError
- type InvalidEntryAccessError
- type LockedAccessor
- type MaskComparer
- type Row
- type RowIndex
- type Schema
- type Table
- type TableBuilder
- type TableEvents
- type TableFactory
- type TableInstantiationNilElementTypesError
- type TableInstantiationNilSchemaError
- type TableIterator
- type TableQuerier
- type TableReader
- type TableSetter
- type TableWriter
- type TransferEntryIndexMismatchError
Constants ¶
This section is empty.
Variables ¶
View Source
var Config config = config{ AutoElementTypeRegistrationTableCreation: true, }
View Source
var Stats stats = stats{}
Functions ¶
This section is empty.
Types ¶
type AccessError ¶
func (AccessError) Error ¶
func (e AccessError) Error() string
type Accessor ¶
type Accessor[T any] struct { // contains filtered or unexported fields }
Warning: internal Dependencies abound!
func FactoryNewAccessor ¶
func FactoryNewAccessor[T any](elementType ElementType) Accessor[T]
Warning: Internal dependency abound!
type BatchDeletionError ¶
type BatchDeletionError struct { BatchOperationError Capacity int }
func (BatchDeletionError) Error ¶
func (e BatchDeletionError) Error() string
type BatchOperationError ¶
type BatchOperationError struct {
Count int
}
func (BatchOperationError) Error ¶
func (e BatchOperationError) Error() string
type DefaultTableEvents ¶
type DefaultTableEvents struct{}
func (*DefaultTableEvents) OnAfterEntriesCreated ¶
func (e *DefaultTableEvents) OnAfterEntriesCreated(entries []Entry)
func (*DefaultTableEvents) OnAfterEntriesDeleted ¶
func (e *DefaultTableEvents) OnAfterEntriesDeleted(ids []EntryID)
func (*DefaultTableEvents) OnBeforeEntriesCreated ¶
func (e *DefaultTableEvents) OnBeforeEntriesCreated(count int) error
func (*DefaultTableEvents) OnBeforeEntriesDeleted ¶
func (e *DefaultTableEvents) OnBeforeEntriesDeleted(indices []int) error
type ElementType ¶
type ElementType interface { ID() ElementTypeID Type() reflect.Type Size() uint32 }
func FactoryNewElementType ¶
func FactoryNewElementType[T any]() ElementType
type ElementTypeID ¶
type ElementTypeID uint32
type EntryIndex ¶
type InvalidElementAccessError ¶
type InvalidElementAccessError struct { ElementType ElementType ValidElementTypes []ElementType }
func (InvalidElementAccessError) Error ¶
func (e InvalidElementAccessError) Error() string
type InvalidEntryAccessError ¶
type InvalidEntryAccessError struct{}
func (InvalidEntryAccessError) Error ¶
func (e InvalidEntryAccessError) Error() string
type LockedAccessor ¶
type LockedAccessor[T any] struct { // contains filtered or unexported fields }
func (LockedAccessor[T]) Check ¶
func (lAccessor LockedAccessor[T]) Check(table Table) bool
func (LockedAccessor[T]) Get ¶
func (lAccessor LockedAccessor[T]) Get(idx int, table Table) *T
type MaskComparer ¶
type Row ¶
func (Row) UnsafePointer ¶
type Schema ¶
type Schema interface { Register(...ElementType) Registered() int Contains(ElementType) bool ContainsAll(...ElementType) bool RowIndexFor(ElementType) uint32 RowIndexForID(ElementTypeID) uint32 }
type Table ¶
type Table interface { TableReader TableWriter TableQuerier TableIterator }
type TableBuilder ¶
type TableBuilder interface { WithSchema(Schema) TableBuilder WithEntryIndex(EntryIndex) TableBuilder WithElementTypes(...ElementType) TableBuilder WithEvents(TableEvents) TableBuilder Build() (Table, error) }
func NewTableBuilder ¶
func NewTableBuilder() TableBuilder
type TableEvents ¶
type TableFactory ¶
type TableFactory interface { NewEntryIndex() EntryIndex // contains filtered or unexported methods }
var (
Factory TableFactory = initTableFactory()
)
type TableInstantiationNilElementTypesError ¶
type TableInstantiationNilElementTypesError struct{}
func (TableInstantiationNilElementTypesError) Error ¶
func (e TableInstantiationNilElementTypesError) Error() string
type TableInstantiationNilSchemaError ¶
type TableInstantiationNilSchemaError struct{}
func (TableInstantiationNilSchemaError) Error ¶
func (e TableInstantiationNilSchemaError) Error() string
type TableIterator ¶
type TableQuerier ¶
type TableQuerier interface { Contains(ElementType) bool ContainsAll(...ElementType) bool ContainsAny(...ElementType) bool ContainsNone(...ElementType) bool }
type TableReader ¶
type TableSetter ¶
type TableSetter []struct { ElementType Values []any }
func (TableSetter) Unpack ¶
func (ts TableSetter) Unpack(s Schema, ei EntryIndex, t *testing.T) (Table, error)
type TableWriter ¶
type TransferEntryIndexMismatchError ¶
type TransferEntryIndexMismatchError struct{}
func (TransferEntryIndexMismatchError) Error ¶
func (e TransferEntryIndexMismatchError) Error() string
Click to show internal directories.
Click to hide internal directories.