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.