"Fossies" - the Fresh Open Source Software archive

Member "redland/docs/api/list.html" of archive amaya-lib-src-11.4.4.tgz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted source code. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.

Lists

The list module provides a simple in-memory list.

List Class

Table of Contents
librdf_new_list --  Constructor - create a new librdf_list
librdf_free_list --  Destructor - destroy a librdf_list object
librdf_list_clear --  empty an librdf_list
librdf_list_add --  add a data item to the end of a librdf_list
librdf_list_unshift --  add a data item to the start of a librdf_list
librdf_list_remove --  remove a data item from an librdf_list
librdf_list_shift --  remove and return the data at the start of the list
librdf_list_pop --  remove and return the data at the end of the list
librdf_list_contains --  check for presence of data item in list
librdf_list_size --  return the length of the list
librdf_list_set_equals --  set the equals function for the list
librdf_list_get_iterator --  get an iterator for the list
librdf_list_foreach --  apply a function for each data item in a librdf_list

This class is implemented as a stack, new items are added to the front of the list.