libfossil
fsl_pq Struct Reference

#include "fossil-internal.h"

Data Fields

fsl_size_t capacity
 Number of items allocated in this->list. More...
 
fsl_pq_elist
 The queue. More...
 
fsl_size_t used
 Number of items used in this->list. More...
 

Detailed Description

A simple priority queue class. Instances _must_ be initialized by copying fsl_pq_empty or fsl_pq_empty_m (depending on where the instance lives).

Definition at line 61 of file fossil-internal.h.

Field Documentation

fsl_size_t fsl_pq::capacity

Number of items allocated in this->list.

Definition at line 63 of file fossil-internal.h.

fsl_pq_e* fsl_pq::list

The queue.

It is kept sorted by entry->value.

Definition at line 67 of file fossil-internal.h.

fsl_size_t fsl_pq::used

Number of items used in this->list.

Definition at line 65 of file fossil-internal.h.


The documentation for this struct was generated from the following file: