Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionPool ¶
type CollectionPool[T any] struct { // contains filtered or unexported fields }
func NewCollectionPool ¶
func NewCollectionPool[T any](alloc Allocator[T]) *CollectionPool[T]
func (*CollectionPool[T]) Get ¶
func (p *CollectionPool[T]) Get() T
nolint: gocritic // commentedOutCode
func (CollectionPool[T]) GetSlice ¶
func (p CollectionPool[T]) GetSlice() *[]T
func (*CollectionPool[T]) Put ¶
func (p *CollectionPool[T]) Put(t T)
func (*CollectionPool[T]) PutSlice ¶
func (p *CollectionPool[T]) PutSlice(s *[]T)
type Pool ¶
func NewSlicePool ¶
type RelationAllocator ¶
type RelationAllocator struct {
// contains filtered or unexported fields
}
func NewRelationAllocator ¶
func NewRelationAllocator() *RelationAllocator
func (*RelationAllocator) New ¶
func (ra *RelationAllocator) New() *dsc.RelationIdentifier
func (*RelationAllocator) Reset ¶
func (ra *RelationAllocator) Reset(rel *dsc.RelationIdentifier)
type RelationsPool ¶
type RelationsPool = CollectionPool[*dsc.RelationIdentifier]
func NewRelationsPool ¶
func NewRelationsPool() *RelationsPool
Click to show internal directories.
Click to hide internal directories.