SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Protected Member Functions | List of all members
sc_core::sc_ppq_base Class Reference

#include <sysc/utils/sc_pq.h>

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

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

Member Typedef Documentation

◆ compare_fn_t

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

Definition at line 48 of file sc_pq.h.

Constructor & Destructor Documentation

◆ sc_ppq_base()

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

◆ ~sc_ppq_base()

sc_core::sc_ppq_base::~sc_ppq_base ( )

Member Function Documentation

◆ empty()

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

Definition at line 64 of file sc_pq.h.

◆ extract_top()

void * sc_core::sc_ppq_base::extract_top ( )

◆ heapify()

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

◆ insert()

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

◆ left()

int sc_core::sc_ppq_base::left ( int  i) const
inlineprotected

Definition at line 72 of file sc_pq.h.

◆ parent()

int sc_core::sc_ppq_base::parent ( int  i) const
inlineprotected

Definition at line 69 of file sc_pq.h.

◆ right()

int sc_core::sc_ppq_base::right ( int  i) const
inlineprotected

Definition at line 75 of file sc_pq.h.

◆ size()

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

Definition at line 61 of file sc_pq.h.

◆ top()

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

Definition at line 54 of file sc_pq.h.


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