Mission Base

Program Base Library Functions

PblList* pblCollectionConvertToLinkedList

( PblCollection* collection )

Returns a pblLinkedList with a shallow copy of this collection instance.

Documentation

Returns a pblLinkedList with a shallow copy of this collection instance.

The elements themselves are not copied.

This method has a memory and time complexity of O(N), with N being the number of elements in the collection.

Parameters:
collection - The collection to convert
Returns:
PblList * retPtr != NULL: A pointer to the new list.
PblList * retPtr == NULL: An error, see pbl_errno:
PBL_ERROR_OUT_OF_MEMORY - Out of memory.
PBL_ERROR_PARAM_COLLECTION - The collection cannot be iterated.
PBL_ERROR_CONCURRENT_MODIFICATION - The collection was modified concurrently.

Alphabetic index



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