ns2 Network Simulator C++ Class Hierarchy of version ns-snapshot-20040722 | |
| Home | Source Code | Manual | FAQ | Mailing List Archive | Search | | | Download | |
#include <heap.h>
Public Member Functions | |
Heap (int size=HEAP_DEFAULT_SIZE) | |
~Heap () | |
int | heap_member (void *elem) |
int | heap_delete (void *elem) |
void * | heap_iter_init () |
void * | heap_iter () |
void | heap_insert (heap_key_t key, void *elem) |
void * | heap_min () |
void * | heap_extract_min () |
Private Member Functions | |
unsigned int | parent (unsigned int i) |
unsigned int | left (unsigned int i) |
unsigned int | right (unsigned int i) |
void | swap (unsigned int i, unsigned int j) |
unsigned int | KEY_LESS_THAN (heap_key_t k1, heap_secondary_key_t ks1, heap_key_t k2, heap_secondary_key_t ks2) |
unsigned int | KEY_LESS_OR_EQUAL_THAN (heap_key_t k1, heap_key_t k2) |
Private Attributes | |
Heap::Heap_elem * | h_elems |
unsigned int | h_s_key |
unsigned int | h_size |
unsigned int | h_maxsize |
unsigned int | h_iter |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|