View
A view that supports accesses to a TArray
instance outside the static
scope of a Txn
. TArray.View
is to TArray
as Ref.View
is to
Ref
.
A view that supports accesses to a TArray
instance outside the static
scope of a Txn
. TArray.View
is to TArray
as Ref.View
is to
Ref
.
Value members
Abstract methods
Performs an atomic read of the index
th element of array
. If an
atomic block is active (see Txn.findCurrent
) then the read will be
performed as part of the transaction, otherwise it will act as if it
was performed inside a new atomic block.
Performs an atomic read of the index
th element of array
. If an
atomic block is active (see Txn.findCurrent
) then the read will be
performed as part of the transaction, otherwise it will act as if it
was performed inside a new atomic block.
Returns a sequence of Ref.View
that are backed by the elements of
array
. All operations on the contained Ref.View
s are supported.
Returns a sequence of Ref.View
that are backed by the elements of
array
. All operations on the contained Ref.View
s are supported.
Performs an atomic write of the index
th element of array
. If an
atomic block is active (see Txn.findCurrent
) then the write will be
performed as part of the transaction, otherwise it will act as if it
was performed inside a new atomic block.
Performs an atomic write of the index
th element of array
. If an
atomic block is active (see Txn.findCurrent
) then the write will be
performed as part of the transaction, otherwise it will act as if it
was performed inside a new atomic block.
Inherited methods
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOnceOps
Returns a string representation of the transactional value in this
instance for debugging convenience. The Ref
reads (and writes)
performed while constructing the result will be discarded before
returning. This method works fine outside a transaction.
Returns a string representation of the transactional value in this
instance for debugging convenience. The Ref
reads (and writes)
performed while constructing the result will be discarded before
returning. This method works fine outside a transaction.
If this method is called from within a transaction that is already
doomed (status Txn.Rolledback
), a string describing the reason
for the outer transaction's rollback will be returned.
- Inherited from
- TxnDebuggable
Returns some value that is suitable for examination in a debugger,
or returns a Txn.RollbackCause
if called from inside a doomed atomic
block.
Returns some value that is suitable for examination in a debugger,
or returns a Txn.RollbackCause
if called from inside a doomed atomic
block.
- Inherited from
- TxnDebuggable
- Inherited from
- SeqOps
- Inherited from
- SeqOps
- Inherited from
- SeqOps
- Definition Classes
- IndexedSeq -> IndexedSeq -> Seq -> Seq -> Iterable -> Iterable -> IterableOps
- Inherited from
- IndexedSeq
- Inherited from
- SeqOps
- Inherited from
- SeqOps
- Inherited from
- IterableOnceOps
- Inherited from
- IterableOps
Deprecated and Inherited methods
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- SeqOps
- Deprecated
- Inherited from
- IterableOps
- Deprecated
- Inherited from
- SeqOps
- Deprecated
- Inherited from
- Iterable
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- IterableOnceOps
- Deprecated
- Inherited from
- SeqOps