Show / Hide Table of Contents

Class Shortcuts<T>

Contains the shorcuts around one vertex.

Inheritance
System.Object
Shortcuts<T>
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Shortcuts<T> : IEnumerable<KeyValuePair<OriginalEdge, Shortcut<T>>> where T : struct
Type Parameters
T

Constructors

Shortcuts()

Creates a new shortcuts collection.

Declaration
public Shortcuts()

Properties

Item[OriginalEdge]

Gets or sets a shortcut.

Declaration
public Shortcut<T> this[OriginalEdge edge] { get; set; }
Parameters
OriginalEdge edge

Property Value
Shortcut<T>

Methods

AddOrUpdate(OriginalEdge, Shortcut<T>, WeightHandler<T>)

Adds or updates the weight for the given edge.

Declaration
public void AddOrUpdate(OriginalEdge edge, Shortcut<T> shortcut, WeightHandler<T> weightHandler)
Parameters
OriginalEdge edge

Shortcut<T> shortcut

WeightHandler<T> weightHandler

Clear()

Clears all shortcuts.

Declaration
public void Clear()

Clone()

Declaration
public Shortcuts<T> Clone()
Returns
Shortcuts<T>

Edges()

Declaration
public IEnumerable<OriginalEdge> Edges()
Returns
IEnumerable<OriginalEdge>

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<KeyValuePair<OriginalEdge, Shortcut<T>>> GetEnumerator()
Returns
IEnumerator<KeyValuePair<OriginalEdge, Shortcut<T>>>

ToString()

Returns a description of this shortcuts collection.

Declaration
public override string ToString()
Returns
System.String

TryGetValue(OriginalEdge, out Shortcut<T>)

Tries to get the shortcut associated with the given edge.

Declaration
public bool TryGetValue(OriginalEdge edge, out Shortcut<T> shortcut)
Parameters
OriginalEdge edge

Shortcut<T> shortcut

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.