Show / Hide Table of Contents

Class UniqueIdMap<T>

A unique id map, only vertex per id.

Inheritance
System.Object
UniqueIdMap<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class UniqueIdMap<T>
    where T : struct
Type Parameters
T

Constructors

UniqueIdMap(T, Int32)

Creates a new id map.

Declaration
public UniqueIdMap(T defaultValue, int blockSize = 32)
Parameters
T defaultValue

System.Int32 blockSize

Properties

Item[Int64]

Gets or sets the tile id for the given id.

Declaration
public T this[long id] { get; set; }
Parameters
System.Int64 id

Property Value
T

NonDefaultIndices

An enumerable with the non-default indices in this map.

Declaration
public IEnumerable<long> NonDefaultIndices { get; }
Property Value
IEnumerable<System.Int64>

Methods

Get(Int64)

Gets a tile id.

Declaration
public T Get(long id)
Parameters
System.Int64 id

Returns
T

Set(Int64, T)

Sets a tile id.

Declaration
public void Set(long id, T vertex)
Parameters
System.Int64 id

T vertex

Back to top Built by Itinero, MIT licensed.