ReferenceCountedAssociativeTableModel<KeyType extends Object> class
Independent model of associative allocation and reference counting.
Misses allocate the lowest free physical index, matching
ReadyValidIndexPool's default ownership order. A simultaneous acquire and
release is rejected as an operation conflict.
- Mixed-in types
Constructors
- ReferenceCountedAssociativeTableModel({required int capacity, required int maximumReferences})
- Creates an empty reference-counted associative model.
Properties
- allocatedCount → int
-
Number of allocated distinct keys.
no setter
- capabilities → StateTransactionCapabilities
-
Static software transaction behavior.
no setterinherited
- capacity → int
-
Number of distinct keys that can be allocated.
final
- empty → bool
-
Whether no physical entries are allocated.
no setter
- full → bool
-
Whether every physical entry is allocated.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
image
→ ReferenceCountedAssociativeTableImage<
KeyType> -
Current immutable logical image.
no setteroverride
- maximumReferences → int
-
Largest live reference count for one key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stateTransactions
→ StateTransactionEndpoint<
ReferenceCountedAssociativeTableImage< KeyType> > -
This model's software transaction endpoint.
no setterinherited
Methods
-
applyCycle(
{KeyType? acquireKey, int? releaseIndex}) → ReferenceCountedAssociativeCycleResult - Applies an optional acquire or release with hardware-equivalent conflict handling.
-
load(
covariant ReferenceCountedAssociativeTableImage< KeyType> image) → void -
Replaces model state from a compatible image.
override
-
lookup(
KeyType key) → ({int index, int referenceCount})? -
Finds
keyand returns its physical index and reference count. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Clears all allocations and reference counts.
-
toString(
) → String -
A string representation of this object.
inherited
-
transact(
StateTransactionRequest< ReferenceCountedAssociativeTableImage< request, {bool quiescent = false}) → StateTransactionCompletion<KeyType> >ReferenceCountedAssociativeTableImage< KeyType> > -
Accepts a request and returns its completion.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited