Mission Base

Program Base Library Functions

void* pblPriorityQueueGet

( PblPriorityQueue* queue,
  int index, int* priority )

Returns the element at the specified position in the priority queue.

Documentation

Returns the element at the specified position in the priority queue.

This method has a time complexity of O(1).

Parameters:
queue - The queue to use
index - Index of the element to return
priority - On return contains the priority of the element
Returns:
void * retptr != (void*)-1: The element at the specified position, may be NULL.
void * retptr == (void*)-1: An error, see pbl_errno:
PBL_ERROR_OUT_OF_BOUNDS - Index is out of range (index < 0 || index >= size()).

Alphabetic index



This page was generated with the help of DOC++.