Show / Hide Table of Contents

Class DirectedDynamicGraph.EdgeEnumerator

Represents the internal edge enumerator.

Inheritance
System.Object
DirectedDynamicGraph.EdgeEnumerator
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public sealed class EdgeEnumerator : IEnumerable<DynamicEdge>, IEnumerator<DynamicEdge>

Constructors

EdgeEnumerator(DirectedDynamicGraph)

Creates a new edge enumerator.

Declaration
public EdgeEnumerator(DirectedDynamicGraph graph)
Parameters
DirectedDynamicGraph graph

Properties

Current

Gets the current edge.

Declaration
public DynamicEdge Current { get; }
Property Value
DynamicEdge

Data

Returns the dynamic part of the edge data.

Declaration
public uint[] Data { get; }
Property Value
System.UInt32[]

Data0

Returns the first entry in the edge data if fixed data count > 0.

Declaration
public uint Data0 { get; }
Property Value
System.UInt32

Data1

Returns the first entry in the edge data if fixed data count > 1.

Declaration
public uint Data1 { get; }
Property Value
System.UInt32

DynamicData

Returns the dynamic part of the edge data.

Declaration
public uint[] DynamicData { get; }
Property Value
System.UInt32[]

DynamicData0

Returns the dynamic part of the edge data.

Declaration
public uint DynamicData0 { get; }
Property Value
System.UInt32

HasDynamicData

Returns true if there is dynamic data.

Declaration
public bool HasDynamicData { get; }
Property Value
System.Boolean

Id

Returns the edge id.

Declaration
public uint Id { get; }
Property Value
System.UInt32

Neighbour

Returns the current neighbour.

Declaration
public uint Neighbour { get; }
Property Value
System.UInt32

Methods

Dispose()

Disposes.

Declaration
public void Dispose()

FillWithData(ref UInt32[])

Fills the given array with the fixed data.

Declaration
public int FillWithData(ref uint[] data)
Parameters
System.UInt32[] data

Returns
System.Int32

FillWithDynamicData(ref UInt32[])

Fills the given array with the dynamic part of the edge-data.

Declaration
public int FillWithDynamicData(ref uint[] data)
Parameters
System.UInt32[] data

Returns
System.Int32

GetData(out UInt32, out UInt32, out UInt32)

Gets all commonly used data fields in on go.

Declaration
public void GetData(out uint neighbour, out uint data0, out uint data1)
Parameters
System.UInt32 neighbour

System.UInt32 data0

System.UInt32 data1

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<DynamicEdge> GetEnumerator()
Returns
IEnumerator<DynamicEdge>

MoveNext()

Move to the next edge.

Declaration
public bool MoveNext()
Returns
System.Boolean

MoveTo(UInt32)

Moves this enumerator to the given vertex.

Declaration
public bool MoveTo(uint vertex)
Parameters
System.UInt32 vertex

Returns
System.Boolean

MoveToEdge(UInt32)

Moves this enumerator to the given edge.

Declaration
public bool MoveToEdge(uint edge)
Parameters
System.UInt32 edge

Returns
System.Boolean

Reset()

Resets this enumerator.

Declaration
public void Reset()

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns the enumerator.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

Back to top Built by Itinero, MIT licensed.