Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Runtime.Collections Namespace Reference

Classes

class  ChunkedList
 A chunked list is a linked list of chunks of objects of type T . More...
 
class  ChunkedListDebugView
 Displays a ChunkedList<T> is a debugger view.
 
class  ChunkedListExtensions
 ChunkedList extensions. More...
 
class  ChunkNode
 Node referencing a chunk in a ChunkedList<T> More...
 
class  ChunkNodeDebugView
 Displays a ChunkNode<T> is a debugger view.
 

Functions

delegate bool ForEachChunkCallback< T > (T[] Chunk, int Offset, int Count)
 Callback method for the ForEachChunk method. More...
 
delegate Task< bool > ForEachChunkAsyncCallback< T > (T[] Chunk, int Offset, int Count)
 Asynchronous callback method for the ForEachChunkAsync method. More...
 
delegate Task< bool > PredicateAsync< in T > (T Arg)
 Asynchronous predicate function with one argument. More...
 
delegate bool UpdateCallback< T > (ref T Value, out bool Keep)
 Delegate for callback methods that update the elements of a ChunkedList<T>. More...
 

Function Documentation

◆ ForEachChunkAsyncCallback< T >()

delegate Task< bool > Waher.Runtime.Collections.ForEachChunkAsyncCallback< T > ( T[]  Chunk,
int  Offset,
int  Count 
)

Asynchronous callback method for the ForEachChunkAsync method.

Template Parameters
TElement type.
Parameters
ChunkChunk being iterated.
OffsetOffset into chunk where elements begin.
CountNumber of items in chunk.
Returns
If the iteration can continue (true) or should be terminated early (false).

◆ ForEachChunkCallback< T >()

delegate bool Waher.Runtime.Collections.ForEachChunkCallback< T > ( T[]  Chunk,
int  Offset,
int  Count 
)

Callback method for the ForEachChunk method.

Template Parameters
TElement type.
Parameters
ChunkChunk being iterated.
OffsetOffset into chunk where elements begin.
CountNumber of items in chunk.
Returns
If the iteration can continue (true) or should be terminated early (false).

◆ PredicateAsync< in T >()

delegate Task< bool > Waher.Runtime.Collections.PredicateAsync< in T > ( Arg)

Asynchronous predicate function with one argument.

Template Parameters
TArgument type.
Parameters
ArgArgument.
Returns
Result of call.

◆ UpdateCallback< T >()

delegate bool Waher.Runtime.Collections.UpdateCallback< T > ( ref T  Value,
out bool  Keep 
)

Delegate for callback methods that update the elements of a ChunkedList<T>.

Template Parameters
TType of element.
Parameters
ValueValue that can be updated.
KeepIf the value should be kept.
Returns
If the iteration can continue (true) or should be terminated early (false).