IPriorityQueue<TValue,TCont> Interface

Definição

Define a interface para um objeto STL/CLR priority_queue.Defines the interface for an STL/CLR priority_queue object.

generic <typename TValue, typename TCont>
public interface class IPriorityQueue : ICloneable
public interface IPriorityQueue<TValue,TCont> : ICloneable
type IPriorityQueue<'Value, 'Cont> = interface
    interface ICloneable
Public Interface IPriorityQueue(Of TValue, TCont)
Implements ICloneable

Parâmetros de tipo

TValue

O tipo de um elemento na sequência controlada.The type of an element in the controlled sequence.

TCont

O tipo do contêiner subjacente.The type of the underlying container.

Implementações

Propriedades

top_item

Acessa o elemento de prioridade mais alta do contêiner.Accesses the highest-priority element of the container.

Métodos

assign(IPriorityQueue<TValue,TCont>)

Substitui todos os elementos do contêiner.Replaces all elements of the container.

Clone()

Cria um novo objeto que é uma cópia da instância atual.Creates a new object that is a copy of the current instance.

(Herdado de ICloneable)
empty()

Determina se o contêiner não contém nenhum elemento.Determines whether the container contains no elements.

get_container()

Acessa o contêiner subjacente.Accesses the underlying container.

pop()

Remove o elemento de prioridade mais alta do contêiner.Removes the highest-priority element of the container.

push(TValue)

Adiciona um novo elemento no contêiner.Adds a new element to the container.

size()

Conta o número de elementos no contêiner.Counts the number of elements in the container.

top()

Acessa o elemento de prioridade mais alta do contêiner.Accesses the highest-priority element of the container.

value_comp()

Copia o delegado de ordenação para dois elementos.Copies the ordering delegate for two elements.

Aplica-se a