Search Results for

    Show / Hide Table of Contents

    Class PriorityQueue<T>

    Inheritance
    object
    PriorityQueue<T>
    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public class PriorityQueue<T>
    Type Parameters
    Name Description
    T

    Fields

    | Edit this page View Source

    items

    Declaration
    private List<Tuple<float, T>> items
    Field Value
    Type Description
    List<Tuple<float, T>>

    Properties

    | Edit this page View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Clear()

    Declaration
    public void Clear()
    | Edit this page View Source

    Dequeue()

    Declaration
    public T Dequeue()
    Returns
    Type Description
    T
    | Edit this page View Source

    Enqueue(float, T)

    Declaration
    public void Enqueue(float priority, T value)
    Parameters
    Type Name Description
    float priority
    T value
    | Edit this page View Source

    GetSortedList()

    Returns the internal list which is sorted in ascending order.

    Declaration
    public List<Tuple<float, T>> GetSortedList()
    Returns
    Type Description
    List<Tuple<float, T>>
    | Edit this page View Source

    IsEmpty()

    Declaration
    public bool IsEmpty()
    Returns
    Type Description
    bool
    | Edit this page View Source

    Peek()

    Declaration
    public T Peek()
    Returns
    Type Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX