SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_core::sc_ppq< T > Class Template Reference

#include <sysc/utils/sc_pq.h>

Inheritance diagram for sc_core::sc_ppq< T >:
Collaboration diagram for sc_core::sc_ppq< T >:

Public Types

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

Public Member Functions

 sc_ppq (int sz, compare_fn_t cmp)
 
 ~sc_ppq ()
 
top () const
 
extract_top ()
 
void insert (T elem)
 
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

template<class T>
class sc_core::sc_ppq< T >

Definition at line 102 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 *)
inherited

Definition at line 52 of file sc_pq.h.

Constructor & Destructor Documentation

◆ sc_ppq()

template<class T>
sc_core::sc_ppq< T >::sc_ppq ( int  sz,
compare_fn_t  cmp 
)
inline

Definition at line 110 of file sc_pq.h.

◆ ~sc_ppq()

template<class T>
sc_core::sc_ppq< T >::~sc_ppq ( )
inline

Definition at line 114 of file sc_pq.h.

Member Function Documentation

◆ empty()

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

Definition at line 68 of file sc_pq.h.

◆ extract_top()

template<class T>
T sc_core::sc_ppq< T >::extract_top ( )
inline

Definition at line 123 of file sc_pq.h.

◆ heapify()

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

◆ insert() [1/2]

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

◆ insert() [2/2]

template<class T>
void sc_core::sc_ppq< T >::insert ( elem)
inline

Definition at line 128 of file sc_pq.h.

◆ left()

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

Definition at line 76 of file sc_pq.h.

◆ parent()

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

Definition at line 73 of file sc_pq.h.

◆ right()

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

Definition at line 79 of file sc_pq.h.

◆ size()

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

Definition at line 65 of file sc_pq.h.

◆ top()

template<class T>
T sc_core::sc_ppq< T >::top ( ) const
inline

Definition at line 118 of file sc_pq.h.


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