Class EntityLane<TEntity>
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Inheritance
System.Object
EntityLane<TEntity>
Implements
IEntityLane<TEntity>
System.Collections.Generic.IList<TEntity>
System.Collections.Generic.ICollection<TEntity>
System.Collections.Generic.IEnumerable<TEntity>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Components.Environments
Assembly: Mars.Components.dll
Syntax
public class EntityLane<TEntity> : IEntityLane<TEntity>, IList<TEntity>, ICollection<TEntity>, IEnumerable<TEntity>, IEnumerable where TEntity : ISpatialGraphEntity
Type Parameters
| Name | Description |
|---|---|
| TEntity | The concrete entity type to store on this lane. |
Constructors
| Improve this Doc View SourceEntityLane()
Creates a new empty EntityLane<TEntity> with custom
System.IComparable<T> implementation to get a
collection of ISpatialGraphEntity into an order.
Declaration
public EntityLane()
Fields
| Improve this Doc View SourceLaneComparer
The internal System.IComparable<T> implementation for the ISpatialGraphEntitys.
Declaration
public static readonly FuncComparerEqual<TEntity> LaneComparer
Field Value
| Type | Description |
|---|---|
| Mars.Common.Core.Collections.FuncComparerEqual<TEntity> |
Properties
| Improve this Doc View SourceCount
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
IsReadOnly
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Item[Int32]
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public TEntity this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type | Description |
|---|---|
| TEntity |
Methods
| Improve this Doc View SourceAdd(TEntity)
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public void Add(TEntity item)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | item |
Clear()
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public void Clear()
Contains(TEntity)
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public bool Contains(TEntity item)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | item |
Returns
| Type | Description |
|---|---|
| System.Boolean |
CopyTo(TEntity[], Int32)
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public void CopyTo(TEntity[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity[] | array | |
| System.Int32 | arrayIndex |
GetEnumerator()
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public IEnumerator<TEntity> GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<TEntity> |
IndexOf(TEntity)
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public int IndexOf(TEntity item)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | item |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Insert(Int32, TEntity)
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public void Insert(int index, TEntity item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| TEntity | item |
Remove(TEntity)
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public bool Remove(TEntity item)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | item |
Returns
| Type | Description |
|---|---|
| System.Boolean |
RemoveAt(Int32)
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
This class implements the entity lane line which can hold ISpatialGraphEntitys
on sorted list.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable