Class MapCollection<T>
Collection of LinearMap or BilinearMap objects that can be attached to a session
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
Namespace: MESL.SqlRace.Domain.Collections
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class MapCollection<T> : PersistableCollection<T>, IList, ICollection, IPersistableCollectionInternal<T>, IPersistableCollection<T>, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : MapBase
Type Parameters
Name | Description |
---|---|
T | Type of map |
Methods
ClearAllDataPoints()
Clears all data points in all maps to save memory.
Declaration
public void ClearAllDataPoints()
InsertItem(Int32, T)
Inserts the item.
Declaration
protected override void InsertItem(int index, T newItem)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
T | newItem | The new item. |
Overrides
MESL.SqlRace.Domain.Collections.PersistableCollection<T>.InsertItem(System.Int32, T)
PopulateAllDataPoints()
Populates all data points for each map in the collection.
Declaration
public void PopulateAllDataPoints()
Remarks
If there are a large amount of Maps/Map data points then populating all maps can consume a largest amount of memory.
PopulateDataPoints(T)
Populates the data points for specific map.
Declaration
public void PopulateDataPoints(T map)
Parameters
Type | Name | Description |
---|---|---|
T | map | The map item. |
PublishAddedEvent(T)
Publishes the added event.
Declaration
protected override void PublishAddedEvent(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item that was added. |
Overrides
MESL.SqlRace.Domain.Collections.PersistableCollection<T>.PublishAddedEvent(T)
PublishRemovedEvent(T)
Publishes the removed event.
Declaration
protected override void PublishRemovedEvent(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item that was removed. |
Overrides
MESL.SqlRace.Domain.Collections.PersistableCollection<T>.PublishRemovedEvent(T)
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IList<>
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable