Show / Hide Table of Contents

    Struct Link

    The link.

    Implements
    IEquatable<Link>
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: Platform.Data.Triplets
    Assembly: Platform.Data.Triplets.dll
    Syntax
    public struct Link : ILink<Link>, IEquatable<Link>

    Constructors

    | Improve this Doc View Source

    Link(UInt64)

    Initializes a new Link instance.

    Declaration
    public Link(ulong link)
    Parameters
    Type Name Description
    UInt64 link

    A link.

    Fields

    | Improve this Doc View Source

    Continue

    The continue.

    Declaration
    public static readonly bool Continue
    Field Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Itself

    The itself.

    Declaration
    public static readonly Link Itself
    Field Value
    Type Description
    Link
    | Improve this Doc View Source

    Stop

    The stop.

    Declaration
    public static readonly bool Stop
    Field Value
    Type Description
    Boolean

    Properties

    | Improve this Doc View Source

    FirstRefererByLinker

    Gets the first referer by linker value.

    Declaration
    public Link FirstRefererByLinker { get; }
    Property Value
    Type Description
    Link
    | Improve this Doc View Source

    FirstRefererBySource

    Gets the first referer by source value.

    Declaration
    public Link FirstRefererBySource { get; }
    Property Value
    Type Description
    Link
    | Improve this Doc View Source

    FirstRefererByTarget

    Gets the first referer by target value.

    Declaration
    public Link FirstRefererByTarget { get; }
    Property Value
    Type Description
    Link
    | Improve this Doc View Source

    Linker

    Gets the linker value.

    Declaration
    public Link Linker { get; }
    Property Value
    Type Description
    Link
    | Improve this Doc View Source

    ReferersByLinkerCount

    Gets the referers by linker count value.

    Declaration
    public long ReferersByLinkerCount { get; }
    Property Value
    Type Description
    Int64
    | Improve this Doc View Source

    ReferersBySourceCount

    Gets the referers by source count value.

    Declaration
    public long ReferersBySourceCount { get; }
    Property Value
    Type Description
    Int64
    | Improve this Doc View Source

    ReferersByTargetCount

    Gets the referers by target count value.

    Declaration
    public long ReferersByTargetCount { get; }
    Property Value
    Type Description
    Int64
    | Improve this Doc View Source

    Source

    Gets the source value.

    Declaration
    public Link Source { get; }
    Property Value
    Type Description
    Link
    | Improve this Doc View Source

    Target

    Gets the target value.

    Declaration
    public Link Target { get; }
    Property Value
    Type Description
    Link
    | Improve this Doc View Source

    Timestamp

    Gets the timestamp value.

    Declaration
    public DateTime Timestamp { get; }
    Property Value
    Type Description
    DateTime
    | Improve this Doc View Source

    TotalReferers

    Gets the total referers value.

    Declaration
    public long TotalReferers { get; }
    Property Value
    Type Description
    Int64

    Methods

    | Improve this Doc View Source

    Create(Link, Link, Link)

    Creates the source.

    Declaration
    public static Link Create(Link source, Link linker, Link target)
    Parameters
    Type Name Description
    Link source

    The source.

    Link linker

    The linker.

    Link target

    The target.

    Returns
    Type Description
    Link

    The link.

    Exceptions
    Type Condition
    InvalidOperationException

    Менеджер памяти ещё не готов.

    InvalidOperationException

    Невозможно создать связь.

    ArgumentException

    Удалённая связь не может использоваться в качестве значения.

    ArgumentException

    Удалённая связь не может использоваться в качестве значения.

    ArgumentException

    Удалённая связь не может использоваться в качестве значения.

    | Improve this Doc View Source

    CreateMapped(Link, Link, Link, Int64)

    Creates the mapped using the specified source.

    Declaration
    public static Link CreateMapped(Link source, Link linker, Link target, long mappingIndex)
    Parameters
    Type Name Description
    Link source

    The source.

    Link linker

    The linker.

    Link target

    The target.

    Int64 mappingIndex

    The mapping index.

    Returns
    Type Description
    Link

    The mapped link.

    Exceptions
    Type Condition
    InvalidOperationException

    Менеджер памяти ещё не готов.

    InvalidOperationException

    Существующая привязанная связь не соответствует указанным Source, Linker и Target.

    InvalidOperationException

    Установить привязанную связь не удалось.

    | Improve this Doc View Source

    CreateMapped(Link, Link, Link, Object)

    Creates the mapped using the specified source.

    Declaration
    public static Link CreateMapped(Link source, Link linker, Link target, object mappingIndex)
    Parameters
    Type Name Description
    Link source

    The source.

    Link linker

    The linker.

    Link target

    The target.

    Object mappingIndex

    The mapping index.

    Returns
    Type Description
    Link

    The link

    | Improve this Doc View Source

    Delete(Link)

    Deletes the link.

    Declaration
    public static void Delete(Link link)
    Parameters
    Type Name Description
    Link link

    The link.

    | Improve this Doc View Source

    Delete(ref Link)

    Deletes the link.

    Declaration
    public static void Delete(ref Link link)
    Parameters
    Type Name Description
    Link link

    The link.

    | Improve this Doc View Source

    Equals(Link)

    Determines whether this instance equals.

    Declaration
    public bool Equals(Link other)
    Parameters
    Type Name Description
    Link other

    The other.

    Returns
    Type Description
    Boolean

    The bool

    | Improve this Doc View Source

    Equals(Object)

    Determines whether this instance equals.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The obj.

    Returns
    Type Description
    Boolean

    The bool

    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    Exists(Link, Link, Link)

    Determines whether exists.

    Declaration
    public static bool Exists(Link source, Link linker, Link target)
    Parameters
    Type Name Description
    Link source

    The source.

    Link linker

    The linker.

    Link target

    The target.

    Returns
    Type Description
    Boolean

    The bool

    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The int

    Overrides
    ValueType.GetHashCode()
    | Improve this Doc View Source

    GetMapped(Int64)

    Gets the mapped using the specified mapping index.

    Declaration
    public static Link GetMapped(long mappingIndex)
    Parameters
    Type Name Description
    Int64 mappingIndex

    The mapping index.

    Returns
    Type Description
    Link

    The mapped link.

    Exceptions
    Type Condition
    InvalidOperationException

    Mapped link with index {mappingIndex} is not set.

    | Improve this Doc View Source

    GetMapped(Object)

    Gets the mapped using the specified mapping index.

    Declaration
    public static Link GetMapped(object mappingIndex)
    Parameters
    Type Name Description
    Object mappingIndex

    The mapping index.

    Returns
    Type Description
    Link

    The link

    | Improve this Doc View Source

    GetMappedOrDefault(Int64)

    Gets the mapped or default using the specified mapping index.

    Declaration
    public static Link GetMappedOrDefault(long mappingIndex)
    Parameters
    Type Name Description
    Int64 mappingIndex

    The mapping index.

    Returns
    Type Description
    Link

    The mapped link.

    | Improve this Doc View Source

    GetMappedOrDefault(Object)

    Gets the mapped or default using the specified mapping index.

    Declaration
    public static Link GetMappedOrDefault(object mappingIndex)
    Parameters
    Type Name Description
    Object mappingIndex

    The mapping index.

    Returns
    Type Description
    Link

    The mapped link.

    | Improve this Doc View Source

    Restore(Int64)

    Restores the index.

    Declaration
    public static Link Restore(long index)
    Parameters
    Type Name Description
    Int64 index

    The index.

    Returns
    Type Description
    Link

    The link

    | Improve this Doc View Source

    Restore(UInt64)

    Restores the index.

    Declaration
    public static Link Restore(ulong index)
    Parameters
    Type Name Description
    UInt64 index

    The index.

    Returns
    Type Description
    Link

    The link

    Exceptions
    Type Condition
    InvalidOperationException

    Менеджер памяти ещё не готов.

    InvalidOperationException

    Связь с указанным адресом удалена, либо не существовала.

    ArgumentException

    У связи не может быть нулевого адреса.

    InvalidOperationException

    Указатель не является корректным.

    | Improve this Doc View Source

    Search(Link, Link, Link)

    Searches the source.

    Declaration
    public static Link Search(Link source, Link linker, Link target)
    Parameters
    Type Name Description
    Link source

    The source.

    Link linker

    The linker.

    Link target

    The target.

    Returns
    Type Description
    Link

    The link

    Exceptions
    Type Condition
    InvalidOperationException

    Выполнить поиск связи можно только по существующим связям.

    InvalidOperationException

    Менеджер памяти ещё не готов.

    | Improve this Doc View Source

    StartMemoryManager(String)

    Starts the memory manager using the specified storage filename.

    Declaration
    public static void StartMemoryManager(string storageFilename)
    Parameters
    Type Name Description
    String storageFilename

    The storage filename.

    Exceptions
    Type Condition
    InvalidOperationException

    Файл ({storageFilename}) хранилища не удалось открыть.

    | Improve this Doc View Source

    StopMemoryManager()

    Stops the memory manager.

    Declaration
    public static void StopMemoryManager()
    Exceptions
    Type Condition
    InvalidOperationException

    Файл хранилища не удалось закрыть. Возможно он был уже закрыт, или не открывался вовсе.

    | Improve this Doc View Source

    ToIndex()

    Returns the index.

    Declaration
    public ulong ToIndex()
    Returns
    Type Description
    UInt64

    The link index

    | Improve this Doc View Source

    ToInt()

    Returns the int.

    Declaration
    public long ToInt()
    Returns
    Type Description
    Int64

    The int

    | Improve this Doc View Source

    ToString()

    Returns the string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    The string

    Overrides
    ValueType.ToString()
    | Improve this Doc View Source

    TryGetMapped(Int64, out Link)

    Determines whether try get mapped.

    Declaration
    public static bool TryGetMapped(long mappingIndex, out Link mappedLink)
    Parameters
    Type Name Description
    Int64 mappingIndex

    The mapping index.

    Link mappedLink

    The mapped link.

    Returns
    Type Description
    Boolean

    The bool

    Exceptions
    Type Condition
    InvalidOperationException

    Менеджер памяти ещё не готов.

    | Improve this Doc View Source

    TryGetMapped(Object, out Link)

    Determines whether try get mapped.

    Declaration
    public static bool TryGetMapped(object mappingIndex, out Link mappedLink)
    Parameters
    Type Name Description
    Object mappingIndex

    The mapping index.

    Link mappedLink

    The mapped link.

    Returns
    Type Description
    Boolean

    The bool

    | Improve this Doc View Source

    TrySetMapped(Link, Int64, Boolean)

    Determines whether try set mapped.

    Declaration
    public static bool TrySetMapped(Link link, long mappingIndex, bool rewrite = false)
    Parameters
    Type Name Description
    Link link

    The link.

    Int64 mappingIndex

    The mapping index.

    Boolean rewrite

    The rewrite.

    Returns
    Type Description
    Boolean

    The bool

    | Improve this Doc View Source

    Update(Link, Link, Link, Link)

    Updates the link.

    Declaration
    public static Link Update(Link link, Link newSource, Link newLinker, Link newTarget)
    Parameters
    Type Name Description
    Link link

    The link.

    Link newSource

    The new source.

    Link newLinker

    The new linker.

    Link newTarget

    The new target.

    Returns
    Type Description
    Link

    The link.

    | Improve this Doc View Source

    Update(ref Link, Link, Link, Link)

    Updates the link.

    Declaration
    public static void Update(ref Link link, Link newSource, Link newLinker, Link newTarget)
    Parameters
    Type Name Description
    Link link

    The link.

    Link newSource

    The new source.

    Link newLinker

    The new linker.

    Link newTarget

    The new target.

    Exceptions
    Type Condition
    InvalidOperationException

    Менеджер памяти ещё не готов.

    ArgumentException

    Нельзя обновить несуществующую связь.

    ArgumentException

    Удалённая связь не может использоваться в качестве нового значения.

    ArgumentException

    Удалённая связь не может использоваться в качестве нового значения.

    ArgumentException

    Удалённая связь не может использоваться в качестве нового значения.

    | Improve this Doc View Source

    WalkThroughAllLinks(Action<Link>)

    Walks the through all links using the specified walker.

    Declaration
    public static void WalkThroughAllLinks(Action<Link> walker)
    Parameters
    Type Name Description
    Action<Link> walker

    The walker.

    | Improve this Doc View Source

    WalkThroughAllLinks(Func<Link, Boolean>)

    Determines whether walk through all links.

    Declaration
    public static bool WalkThroughAllLinks(Func<Link, bool> walker)
    Parameters
    Type Name Description
    Func<Link, Boolean> walker

    The walker.

    Returns
    Type Description
    Boolean

    The bool

    | Improve this Doc View Source

    WalkThroughReferers(Action<Link>)

    Walks the through referers using the specified walker.

    Declaration
    public void WalkThroughReferers(Action<Link> walker)
    Parameters
    Type Name Description
    Action<Link> walker

    The walker.

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    | Improve this Doc View Source

    WalkThroughReferers(Func<Link, Boolean>)

    Walks the through referers using the specified walker.

    Declaration
    public void WalkThroughReferers(Func<Link, bool> walker)
    Parameters
    Type Name Description
    Func<Link, Boolean> walker

    The walker.

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    | Improve this Doc View Source

    WalkThroughReferersAsLinker(Action<Link>)

    Walks the through referers as linker using the specified walker.

    Declaration
    public void WalkThroughReferersAsLinker(Action<Link> walker)
    Parameters
    Type Name Description
    Action<Link> walker

    The walker.

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    | Improve this Doc View Source

    WalkThroughReferersAsLinker(Func<Link, Boolean>)

    Determines whether this instance walk through referers as linker.

    Declaration
    public bool WalkThroughReferersAsLinker(Func<Link, bool> walker)
    Parameters
    Type Name Description
    Func<Link, Boolean> walker

    The walker.

    Returns
    Type Description
    Boolean

    The bool

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    | Improve this Doc View Source

    WalkThroughReferersAsSource(Action<Link>)

    Walks the through referers as source using the specified walker.

    Declaration
    public void WalkThroughReferersAsSource(Action<Link> walker)
    Parameters
    Type Name Description
    Action<Link> walker

    The walker.

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    | Improve this Doc View Source

    WalkThroughReferersAsSource(Func<Link, Boolean>)

    Determines whether this instance walk through referers as source.

    Declaration
    public bool WalkThroughReferersAsSource(Func<Link, bool> walker)
    Parameters
    Type Name Description
    Func<Link, Boolean> walker

    The walker.

    Returns
    Type Description
    Boolean

    The bool

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    | Improve this Doc View Source

    WalkThroughReferersAsTarget(Action<Link>)

    Walks the through referers as target using the specified walker.

    Declaration
    public void WalkThroughReferersAsTarget(Action<Link> walker)
    Parameters
    Type Name Description
    Action<Link> walker

    The walker.

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    | Improve this Doc View Source

    WalkThroughReferersAsTarget(Func<Link, Boolean>)

    Determines whether this instance walk through referers as target.

    Declaration
    public bool WalkThroughReferersAsTarget(Func<Link, bool> walker)
    Parameters
    Type Name Description
    Func<Link, Boolean> walker

    The walker.

    Returns
    Type Description
    Boolean

    The bool

    Exceptions
    Type Condition
    InvalidOperationException

    C несуществующей связью нельзя производитить операции.

    Events

    | Improve this Doc View Source

    CreatedEvent

    Declaration
    public static event Link.CreatedDelegate CreatedEvent
    Event Type
    Type Description
    Link.CreatedDelegate
    | Improve this Doc View Source

    DeletedEvent

    Declaration
    public static event Link.DeletedDelegate DeletedEvent
    Event Type
    Type Description
    Link.DeletedDelegate
    | Improve this Doc View Source

    UpdatedEvent

    Declaration
    public static event Link.UpdatedDelegate UpdatedEvent
    Event Type
    Type Description
    Link.UpdatedDelegate

    Operators

    | Improve this Doc View Source

    BitwiseAnd(Link, Link)

    Declaration
    public static Link operator &(Link first, Link second)
    Parameters
    Type Name Description
    Link first
    Link second
    Returns
    Type Description
    Link
    | Improve this Doc View Source

    Equality(Link, Link)

    Declaration
    public static bool operator ==(Link first, Link second)
    Parameters
    Type Name Description
    Link first
    Link second
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Explicit(Link[] to Link)

    Declaration
    public static explicit operator Link(Link[] links)
    Parameters
    Type Name Description
    Link[] links
    Returns
    Type Description
    Link
    | Improve this Doc View Source

    Explicit(List<Link> to Link)

    Declaration
    public static explicit operator Link(List<Link> links)
    Parameters
    Type Name Description
    List<Link> links
    Returns
    Type Description
    Link
    | Improve this Doc View Source

    Explicit(String to Link)

    Declaration
    public static explicit operator Link(string string)
    Parameters
    Type Name Description
    String string
    Returns
    Type Description
    Link
    | Improve this Doc View Source

    Implicit(Link to Int64)

    Declaration
    public static implicit operator long (Link link)
    Parameters
    Type Name Description
    Link link
    Returns
    Type Description
    Int64
    | Improve this Doc View Source

    Implicit(Link to Nullable<UInt64>)

    Declaration
    public static implicit operator ulong? (Link link)
    Parameters
    Type Name Description
    Link link
    Returns
    Type Description
    Nullable<UInt64>
    | Improve this Doc View Source

    Implicit(Link to UInt64)

    Declaration
    public static implicit operator ulong (Link link)
    Parameters
    Type Name Description
    Link link
    Returns
    Type Description
    UInt64
    | Improve this Doc View Source

    Implicit(Int64 to Link)

    Declaration
    public static implicit operator Link(long link)
    Parameters
    Type Name Description
    Int64 link
    Returns
    Type Description
    Link
    | Improve this Doc View Source

    Implicit(Nullable<UInt64> to Link)

    Declaration
    public static implicit operator Link(ulong? link)
    Parameters
    Type Name Description
    Nullable<UInt64> link
    Returns
    Type Description
    Link
    | Improve this Doc View Source

    Implicit(UInt64 to Link)

    Declaration
    public static implicit operator Link(ulong link)
    Parameters
    Type Name Description
    UInt64 link
    Returns
    Type Description
    Link
    | Improve this Doc View Source

    Inequality(Link, Link)

    Declaration
    public static bool operator !=(Link first, Link second)
    Parameters
    Type Name Description
    Link first
    Link second
    Returns
    Type Description
    Boolean

    Implements

    System.IEquatable<T>

    Extension Methods

    LinkExtensions.SetName(Link, String)
    LinkExtensions.TryGetName(Link, out String)
    LinkExtensions.TryGetSpecificName(Link, out String)
    LinkExtensions.Is(Link, Link)
    LinkExtensions.IsChar(Link)
    LinkExtensions.IsGroup(Link)
    LinkExtensions.IsSum(Link)
    LinkExtensions.IsString(Link)
    LinkExtensions.IsName(Link)
    LinkExtensions.GetArrayOfRererersBySource(Link)
    LinkExtensions.GetArrayOfRererersByLinker(Link)
    LinkExtensions.GetArrayOfRererersByTarget(Link)
    LinkExtensions.WalkThroughSequence(Link, Action<Link>)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX