#include <sc_pq.h>
Inheritance diagram for sc_ppq_base:

Public Types | |
| typedef int(* | compare_fn_t )(const void *, const void *) |
Public Methods | |
| sc_ppq_base (int sz, compare_fn_t cmp) | |
| ~sc_ppq_base () | |
| void * | top () const |
| void * | extract_top () |
| void | insert (void *elem) |
| int | size () const |
| bool | empty () const |
Protected Methods | |
| int | parent (int i) const |
| int | left (int i) const |
| int | right (int i) const |
| void | heapify (int i) |
|
|
Definition at line 54 of file sc_pq.h. Referenced by sc_ppq< sc_time * >::sc_ppq(). |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Reimplemented in sc_ppq< T >, sc_ppq< sc_event_timed * >, and sc_ppq< sc_time * >. Definition at line 61 of file sc_pq.cpp. References assert, and heapify(). Referenced by sc_ppq< sc_time * >::extract_top(). |
|
|
Definition at line 96 of file sc_pq.cpp. References left(), and right(). Referenced by extract_top(). |
|
|
Definition at line 72 of file sc_pq.cpp. References parent(). Referenced by sc_ppq< sc_time * >::insert(). |
|
|
Definition at line 78 of file sc_pq.h. Referenced by heapify(). |
|
|
Definition at line 75 of file sc_pq.h. Referenced by insert(). |
|
|
Definition at line 81 of file sc_pq.h. Referenced by heapify(). |
|
|
Definition at line 67 of file sc_pq.h. Referenced by sc_event_queue::cancel_all(), sc_event_queue::notify(), sc_simcontext::simulate(), and sc_event_queue::~sc_event_queue(). |
|
|
Reimplemented in sc_ppq< T >, sc_ppq< sc_event_timed * >, and sc_ppq< sc_time * >. Definition at line 60 of file sc_pq.h. Referenced by sc_ppq< sc_time * >::top(). |
1.2.18