sc_core::sc_ppq_base Class Reference

#include <sysc/utils/sc_pq.h>

Inheritance diagram for sc_core::sc_ppq_base:
Inheritance graph
[legend]

List of all members.

Public Types

typedef int(* compare_fn_t )(const void *, const void *)

Public Member Functions

 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 Member Functions

int parent (int i) const
int left (int i) const
int right (int i) const
void heapify (int i)

Detailed Description

Definition at line 42 of file sc_pq.h.


Member Typedef Documentation

typedef int(* sc_core::sc_ppq_base::compare_fn_t)(const void *, const void *)

Definition at line 46 of file sc_pq.h.


Constructor & Destructor Documentation

sc_core::sc_ppq_base::sc_ppq_base ( int  sz,
compare_fn_t  cmp 
)
sc_core::sc_ppq_base::~sc_ppq_base (  ) 

Member Function Documentation

bool sc_core::sc_ppq_base::empty (  )  const [inline]

Definition at line 62 of file sc_pq.h.

void* sc_core::sc_ppq_base::extract_top (  ) 
void sc_core::sc_ppq_base::heapify ( int  i  )  [protected]
void sc_core::sc_ppq_base::insert ( void *  elem  ) 
int sc_core::sc_ppq_base::left ( int  i  )  const [inline, protected]

Definition at line 70 of file sc_pq.h.

int sc_core::sc_ppq_base::parent ( int  i  )  const [inline, protected]

Definition at line 67 of file sc_pq.h.

int sc_core::sc_ppq_base::right ( int  i  )  const [inline, protected]

Definition at line 73 of file sc_pq.h.

int sc_core::sc_ppq_base::size (  )  const [inline]

Definition at line 59 of file sc_pq.h.

void* sc_core::sc_ppq_base::top (  )  const [inline]

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

Generated on 12 Jun 2018 for SystemC by  doxygen 1.6.1