Namespace: OtlCommon

Interface IOmniValueEnumerator

All Known Implementing Classes:
TOmniBlockingCollectionEnumerator

public interface IOmniValueEnumerator

summary
Slightly different from the IEnumerable:
- Returns TOmniValue.
- Must ensure correct operation of multiple simultaneous enumerators.
- TryTake must be implemented to support mutable collections (as TOmniBlockingCollection).
For non-mutable collections TryTake can simply return false if the collection
is empty.
- TryTake must be threadsafe - when used in Parallel.For, data manager will call
it simultaneously from multiple threads at the same time.
Persistent
False

Property Summary
  public  TOmniValue Current
 
 

Method Summary
  public function TOmniValue GetCurrent()
 
  public function boolean MoveNext()
 
  public function boolean TryTake(value: TOmniValue ; timeout_ms: cardinal)
 
 

Property Detail

Current

public Current: TOmniValue 
Type
TOmniValue
Access
read

Method Detail

GetCurrent

public function GetCurrent(): TOmniValue 
Reintroduce
False
Returns
TOmniValue

MoveNext

public function MoveNext(): boolean
Reintroduce
False
Returns
boolean

TryTake

public function TryTake(value: TOmniValue ; timeout_ms: cardinal): boolean
Reintroduce
False
Returns
boolean

Association Link

to Struct TOmniValue

Supplier
TOmniValue
Directed
False
Client
Current
Type
association