ListStore<T> Class
              
              
              Namespace: Stride.Core.IO
              Assembly: Stride.Core.Serialization.dll
              
              
              A value store that will be incrementally saved on HDD.
Thread-safe and process-safe.
 
              
              
              
                 System.Object →  
Store<T> →  
                
ListStore<T>
               
              
                 Derived from ListStore<T>: 
              
              
              
              
              
                public class ListStore<T> : Store<T>, IDisposable where T : new()
               
              
              Type Parameters
              
                
                  
                    | Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    The type of elements in the store. 
 | 
                  
                
              
              
              
              
              
                  
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Constructors
              
                
              
              
              
              
              
              ListStore(Stream)
              
              
              
              
              
                public ListStore(Stream stream)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.IO.Stream | 
                    stream | 
                     | 
                  
                
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Fields
              
                
              
              
              
              
              loadedIdMap
              
              
              
              
              
                protected readonly List<T> loadedIdMap
               
              
              Field Value
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Collections.Generic.List<T> | 
                     | 
                  
                
              
              
              
              
              
              unsavedIdMap
              
              
              
              
              
                protected readonly LinkedList<ListStore<T>.UnsavedEntry> unsavedIdMap
               
              
              Field Value
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Methods
              
                
              
              
              
              
              
              AddLoaded(T)
              
              
              
              
              
                protected override void AddLoaded(T item)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    item | 
                     | 
                  
                
              
              Overrides
              Stride.Core.IO.Store<T>.AddLoaded(T)
              
              
              
              
              
              AddUnsaved(T, Int32)
              
              
              
              
              
                protected override void AddUnsaved(T item, int currentTransaction)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    item | 
                     | 
                  
                  
                    | System.Int32 | 
                    currentTransaction | 
                     | 
                  
                
              
              Overrides
              Stride.Core.IO.Store<T>.AddUnsaved(T, System.Int32)
              
              
              
              
              
              GetPendingItems(Int32)
              
              
              
              
              
                protected override IEnumerable<T> GetPendingItems(int currentTransaction)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                    currentTransaction | 
                     | 
                  
                
              
              Returns
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Collections.Generic.IEnumerable<T> | 
                     | 
                  
                
              
              Overrides
              Stride.Core.IO.Store<T>.GetPendingItems(System.Int32)
              
              
              
              
              
              GetValues()
              
              
              
              
              
              
              Returns
              
              
              
              
              
              
              RemoveUnsaved(T, Int32)
              
              
              
              
              
                protected override void RemoveUnsaved(T item, int currentTransaction)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T | 
                    item | 
                     | 
                  
                  
                    | System.Int32 | 
                    currentTransaction | 
                     | 
                  
                
              
              Overrides
              Stride.Core.IO.Store<T>.RemoveUnsaved(T, System.Int32)
              
              
              
              
              
              RemoveUnsaved(IEnumerable<T>, Int32)
              
              
              
              
              
                protected override void RemoveUnsaved(IEnumerable<T> items, int currentTransaction)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Collections.Generic.IEnumerable<T> | 
                    items | 
                     | 
                  
                  
                    | System.Int32 | 
                    currentTransaction | 
                     | 
                  
                
              
              Overrides
              Stride.Core.IO.Store<T>.RemoveUnsaved(System.Collections.Generic.IEnumerable<T>, System.Int32)
              
              
 
              
               
              
              
              
              
              
              
              Extension Methods