sc_core::sc_ppq_base Class Reference

#include <sysc/utils/sc_pq.h>

Inheritance diagram for sc_core::sc_ppq_base:

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

Collaboration 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 60 of file sc_pq.h.


Member Typedef Documentation

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


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 (  ) 

Definition at line 65 of file sc_pq.cpp.


Member Function Documentation

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

void * sc_core::sc_ppq_base::extract_top (  ) 

void sc_core::sc_ppq_base::insert ( void *  elem  ) 

Definition at line 82 of file sc_pq.cpp.

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

Definition at line 77 of file sc_pq.h.

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

Definition at line 80 of file sc_pq.h.

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

Definition at line 85 of file sc_pq.h.

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

Definition at line 88 of file sc_pq.h.

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

Definition at line 91 of file sc_pq.h.

void sc_core::sc_ppq_base::heapify ( int  i  )  [protected]

Definition at line 106 of file sc_pq.cpp.


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

Generated on Wed Jan 21 15:32:16 2009 for SystemC by  doxygen 1.5.5