17 unsigned capacity, size;
21 void swap(
unsigned,
unsigned);
24 void pull_up(
unsigned);
25 void push_down(
unsigned);
29 unsigned smallest(
unsigned,
unsigned)
const;
30 unsigned largest(
unsigned,
unsigned)
const;
33 bool has_parent(
unsigned)
const;
34 bool has_left(
unsigned)
const;
35 bool has_right(
unsigned)
const;
36 unsigned parent(
unsigned)
const;
37 unsigned left(
unsigned)
const;
38 unsigned right(
unsigned)
const;
56 int get_size()
const {
return size; }
57 LPToken** as_array()
const {
return heap; }
Definition: pe_queue.h:15
A chare that encapsulates a set of LPStructs and their events.
Definition: lp.h:64
A token representing a handle to an LP chare inside the scheduler queues.
Definition: lp.h:30
Declares most types used within the simulator and by models.