Synced
IndexedObjectStore<T>
Section titled “IndexedObjectStore<T>”
- Thread-safe object store with optional query keys over stored items.
Required contracts
Section titled “Required contracts”API: engine
Implements: Inno.Core.Collections.IIndexedObjectStore
Inherits: object
Project: Inno.Core.Collections
Declaration
Section titled “Declaration”public sealed class Inno.Core.Collections.IndexedObjectStore<T> where T : class : Inno.Core.Collections.IIndexedObjectStoreType parameters
Section titled “Type parameters”Type parameter T: The stored reference type.
Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | IndexedObjectStore<T>.Constructor | Creates an empty object store. |
| Methods | IndexedObjectStore<T>.Add | Adds an item to the store without indexing. |
| Methods | IndexedObjectStore<T>.All | Returns all stored items as a stable snapshot. |
| Methods | IndexedObjectStore<T>.AllFast | Returns all stored items as a lazy fail-fast enumerable. |
| Methods | IndexedObjectStore<T>.Clear | Clears all stored items and removes all defined keys. |
| Methods | IndexedObjectStore<T>.DefineKey | Defines a query key over stored items. |
| Methods | IndexedObjectStore<T>.Find | Finds items by key and returns a stable snapshot. |
| Methods | IndexedObjectStore<T>.FindFast | Finds items by key and returns a lazy fail-fast enumerable. |
| Methods | IndexedObjectStore<T>.First | Returns the first item by key or null if none exists. |
| Methods | IndexedObjectStore<T>.GetAllKeys | Gets all defined key names as a lazy enumerable. |
| Methods | IndexedObjectStore<T>.Query | Starts a query over stored items. |
| Methods | IndexedObjectStore<T>.Remove | Removes an item from the store and all keys. |
| Methods | IndexedObjectStore<T>.RemoveAll | Clears all stored items but keeps defined keys. |
| Methods | IndexedObjectStore<T>.RemoveKey | Removes a key previously defined on the store. |
| Methods | IndexedObjectStore<T>.TryGetKey | Gets a previously defined key by name. |
| Properties | IndexedObjectStore<T>.count | Number of stored items. |