docs.unity3d.com
    Show / Hide Table of Contents

    Class PriorityHeap<T>

    Inheritance
    Object
    PriorityHeap<T>
    Namespace: Unity.Reflect.Collections
    Syntax
    public class PriorityHeap<T>
    Type Parameters
    Name Description
    T

    Constructors

    PriorityHeap(Int32, Comparer<T>)

    Declaration
    public PriorityHeap(int capacity = 16, Comparer<T> comparer = null)
    Parameters
    Type Name Description
    Int32 capacity
    Comparer<T> comparer

    Properties

    count

    Declaration
    public int count { get; }
    Property Value
    Type Description
    Int32

    isEmpty

    Declaration
    public bool isEmpty { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Clear()

    Declaration
    public void Clear()

    Push(T)

    Declaration
    public void Push(T obj)
    Parameters
    Type Name Description
    T obj

    TryPeek(out T)

    Declaration
    public bool TryPeek(out T value)
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    Boolean

    TryPop(out T)

    Declaration
    public bool TryPop(out T value)
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023