Search Results for

    Show / Hide Table of Contents

    Class MaxHeapEntryRefComparer<TKey, TValue>

    Inheritance
    object
    MaxHeapEntryRefComparer<TKey, TValue>
    Implements
    IRefComparer<HeapEntry<TKey, TValue>>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Tenray.ZoneTree.Core
    Assembly: ZoneTree.dll
    Syntax
    public sealed class MaxHeapEntryRefComparer<TKey, TValue> : IRefComparer<HeapEntry<TKey, TValue>>
    Type Parameters
    Name Description
    TKey
    TValue

    Constructors

    | Improve this Doc View Source

    MaxHeapEntryRefComparer(IRefComparer<TKey>)

    Declaration
    public MaxHeapEntryRefComparer(IRefComparer<TKey> keyComparer)
    Parameters
    Type Name Description
    IRefComparer<TKey> keyComparer

    Properties

    | Improve this Doc View Source

    KeyComparer

    Declaration
    public IRefComparer<TKey> KeyComparer { get; }
    Property Value
    Type Description
    IRefComparer<TKey>

    Methods

    | Improve this Doc View Source

    Compare(in HeapEntry<TKey, TValue>, in HeapEntry<TKey, TValue>)

    Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

    Declaration
    public int Compare(in HeapEntry<TKey, TValue> x, in HeapEntry<TKey, TValue> y)
    Parameters
    Type Name Description
    HeapEntry<TKey, TValue> x

    The first key

    HeapEntry<TKey, TValue> y

    The second key

    Returns
    Type Description
    int

    -1 (x < y), 0 (x == y) or 1 (x > y)

    Implements

    IRefComparer<TKey>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io