Show / Hide Table of Contents

Class ContractedEdgeDataSerializer

Parses edge data.

Inheritance
System.Object
ContractedEdgeDataSerializer
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 static class ContractedEdgeDataSerializer

Fields

DeserializeWeightFunc

Parses the edge data.

Declaration
public static Func<uint[], float> DeserializeWeightFunc
Field Value
Func<System.UInt32[], System.Single>

MAX_DISTANCE

Holds the maxium distance that can be stored on an edge.

Declaration
public static float MAX_DISTANCE
Field Value
System.Single

PRECISION_FACTOR

Holds the precision-factor.

Declaration
public const int PRECISION_FACTOR = 10
Field Value
System.Int32

Properties

DynamicAugmentedFixedSize

Returns the size of the fixed component of the data in the dynamic graph including augmented weights.

Declaration
public static int DynamicAugmentedFixedSize { get; }
Property Value
System.Int32

DynamicFixedSize

Returns the size of the fixed component of the data in the dynamic graph.

Declaration
public static int DynamicFixedSize { get; }
Property Value
System.Int32

MetaAugmentedSize

Returns the size of a the meta data in uint's when serialized and including augmented weights.

Declaration
public static int MetaAugmentedSize { get; }
Property Value
System.Int32

MetaSize

Returns the size of a the meta data in uint's when serialized.

Declaration
public static int MetaSize { get; }
Property Value
System.Int32

Size

Returns the size of a the data in uint's when serialized.

Declaration
public static int Size { get; }
Property Value
System.Int32

Methods

Deserialize(UInt32)

Parses the edge data.

Declaration
public static WeightAndDir<float> Deserialize(uint data0)
Parameters
System.UInt32 data0

Returns
WeightAndDir<System.Single>

Deserialize(UInt32, out Dir, out Single)

Parses the edge data.

Declaration
public static void Deserialize(uint data0, out Dir direction, out float weight)
Parameters
System.UInt32 data0

Dir direction

System.Single weight

Deserialize(UInt32, out Dir, out UInt32)

Parses the edge data.

Declaration
public static void Deserialize(uint data0, out Dir direction, out uint weight)
Parameters
System.UInt32 data0

Dir direction

System.UInt32 weight

Deserialize(UInt32, out Single, out Nullable<Boolean>)

Parses the edge data.

Declaration
public static void Deserialize(uint data0, out float weight, out bool ? direction)
Parameters
System.UInt32 data0

System.Single weight

System.Nullable<System.Boolean> direction

Deserialize(UInt32, UInt32)

Deserializes edges data.

Declaration
public static ContractedEdgeData Deserialize(uint data, uint metaData)
Parameters
System.UInt32 data

System.UInt32 metaData

Returns
ContractedEdgeData

Deserialize(UInt32, UInt32, out Single, out Nullable<Boolean>, out UInt32)

Parses the edge data.

Declaration
public static void Deserialize(uint data0, uint data1, out float weight, out bool ? direction, out uint contractedId)
Parameters
System.UInt32 data0

System.UInt32 data1

System.Single weight

System.Nullable<System.Boolean> direction

System.UInt32 contractedId

DeserializeDynamic(UInt32[], out Single, out Nullable<Boolean>, out Single, out Single)

Parses the edge data.

Declaration
public static void DeserializeDynamic(uint[] data, out float weight, out bool ? direction, out float distance, out float time)
Parameters
System.UInt32[] data

System.Single weight

System.Nullable<System.Boolean> direction

System.Single distance

System.Single time

DeserializeMetaAgumented(UInt32[], out UInt32, out Single, out Single)

Deserializes the agugmented data.

Declaration
public static void DeserializeMetaAgumented(uint[] data, out uint contractedId, out float distance, out float time)
Parameters
System.UInt32[] data

System.UInt32 contractedId

System.Single distance

System.Single time

DeserializeWeight(UInt32)

Parses the edge data.

Declaration
public static float DeserializeWeight(uint data)
Parameters
System.UInt32 data

Returns
System.Single

GetContractedEdgeData(MetaEdge)

Gets contracted edge data.

Declaration
public static ContractedEdgeData GetContractedEdgeData(this MetaEdge edge)
Parameters
MetaEdge edge

Returns
ContractedEdgeData

GetContractedId(DirectedMetaGraph.EdgeEnumerator)

Gets contracted id.

Declaration
public static uint GetContractedId(this DirectedMetaGraph.EdgeEnumerator edge)
Parameters
DirectedMetaGraph.EdgeEnumerator edge

Returns
System.UInt32

GetContractedId(MetaEdge)

Gets contracted id.

Declaration
public static uint GetContractedId(this MetaEdge edge)
Parameters
MetaEdge edge

Returns
System.UInt32

GetContractedId(UInt32[])

Gets contracted id.

Declaration
public static uint GetContractedId(this uint[] metaData)
Parameters
System.UInt32[] metaData

Returns
System.UInt32

HasDirection(UInt32, Nullable<Boolean>)

Returns true if the data represents the same direction.

Declaration
public static bool HasDirection(uint data, bool ? direction)
Parameters
System.UInt32 data

System.Nullable<System.Boolean> direction

Returns
System.Boolean

Serialize(Single, Nullable<Boolean>)

Serializes edge data.

Declaration
public static uint Serialize(float weight, bool ? direction)
Parameters
System.Single weight

System.Nullable<System.Boolean> direction

Returns
System.UInt32

SerializeDistance(Single)

Serializes distance.

Declaration
public static uint SerializeDistance(float distance)
Parameters
System.Single distance

Returns
System.UInt32

SerializeDynamicAugmented(Single, Nullable<Boolean>, Single, Single)

Serializes augmented edge data.

Declaration
public static uint[] SerializeDynamicAugmented(float weight, bool ? direction, float distance, float time)
Parameters
System.Single weight

System.Nullable<System.Boolean> direction

System.Single distance

System.Single time

Returns
System.UInt32[]

SerializeMeta(ContractedEdgeData)

Serializes edge data.

Declaration
public static uint[] SerializeMeta(ContractedEdgeData data)
Parameters
ContractedEdgeData data

Returns
System.UInt32[]

SerializeMetaAugmented(UInt32, Single, Single)

Serializes augmented edge data.

Declaration
public static uint[] SerializeMetaAugmented(uint contractedId, float distance, float time)
Parameters
System.UInt32 contractedId

System.Single distance

System.Single time

Returns
System.UInt32[]

SerializeTime(Single)

Serializes time.

Declaration
public static uint SerializeTime(float time)
Parameters
System.Single time

Returns
System.UInt32

Back to top Built by Itinero, MIT licensed.