Space Station 13 - Nebula13 - Modules - TypesVar Details - Proc Details

priority_queue

An automatically ordered list, using the cmp proc to weight the list items

Vars

LThe actual queue
cmpThe weight function used to order the queue

Procs

DequeueRemoves and returns the first item in the queue
EnqueueAdd an item to the list, immediatly ordering it to its position using dichotomic search
GetGets the item at the positon index
IsEmpty
Length
List
NewTakes a proc comparer that will be used to compare the items inserted
ReSortResorts the item to its correct position in the queue.
RemoveRemoves an item from the list
SeekFinds an item in the list

Var Details

L

The actual queue

cmp

The weight function used to order the queue

Proc Details

Dequeue

Removes and returns the first item in the queue

Enqueue

Add an item to the list, immediatly ordering it to its position using dichotomic search

Get

Gets the item at the positon index

IsEmpty

Length

List

New

Takes a proc comparer that will be used to compare the items inserted

ReSort

Resorts the item to its correct position in the queue.

Remove

Removes an item from the list

Seek

Finds an item in the list