Show / Hide Table of Contents

Class RestrictionsDb

Represents a restriction database.

Inheritance
System.Object
RestrictionsDb
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 RestrictionsDb
Remarks

A restriction is a sequence of vertices that is forbidden. A complex restriction is a restriction with > 1 vertex.

Constructors

RestrictionsDb(Int32)

Creates a new restrictions db.

Declaration
public RestrictionsDb(int hashes = 1048576)
Parameters
System.Int32 hashes

Properties

Count

Gets the number of restrictions in this db.

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

HasComplexRestrictions

Returns true if this db has complex restrictions.

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

Methods

Add(UInt32[])

Adds a new restriction.

Declaration
public void Add(params uint[] restriction)
Parameters
System.UInt32[] restriction

Deserialize(Stream, RestrictionsDbProfile)

Deserializes a restrictions db starting at the current position in the stream.

Declaration
public static RestrictionsDb Deserialize(Stream stream, RestrictionsDbProfile profile)
Parameters
Stream stream

RestrictionsDbProfile profile

Returns
RestrictionsDb

GetEnumerator()

Gets the enumerator.

Declaration
public RestrictionsDb.RestrictionEnumerator GetEnumerator()
Returns
RestrictionsDb.RestrictionEnumerator

Serialize(Stream)

Serializes this restictions db to the given stream.

Declaration
public long Serialize(Stream stream)
Parameters
Stream stream

Returns
System.Int64

Switch(UInt32, UInt32)

Switches the given two vertices.

Declaration
public void Switch(uint vertex1, uint vertex2)
Parameters
System.UInt32 vertex1

System.UInt32 vertex2

Back to top Built by Itinero, MIT licensed.