Fantasy
搜索结果

    显示/隐藏目录

    PriorityQueue<T> 类

    继承
    object
    PriorityQueue<T>
    继承成员
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.DataStructure.PriorityQueue
    程序集: Fantasy.Net.dll
    语法
    public sealed class PriorityQueue<T> where T : IComparable<T>
    类型参数
    名称 描述
    T

    构造函数

    | 编辑本文 查看源代码

    PriorityQueue(int)

    声明
    public PriorityQueue(int initialCapacity = 16)
    参数
    类型 名称 描述
    int initialCapacity

    属性

    | 编辑本文 查看源代码

    Count

    声明
    public int Count { get; }
    属性值
    类型 描述
    int

    方法

    | 编辑本文 查看源代码

    Dequeue()

    声明
    public T Dequeue()
    返回
    类型 描述
    T
    | 编辑本文 查看源代码

    Enqueue(T)

    声明
    public void Enqueue(T item)
    参数
    类型 名称 描述
    T item
    | 编辑本文 查看源代码

    Peek()

    声明
    public T Peek()
    返回
    类型 描述
    T
    | 编辑本文 查看源代码

    TryDequeue(out T)

    声明
    public bool TryDequeue(out T item)
    参数
    类型 名称 描述
    T item
    返回
    类型 描述
    bool

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX