Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

sobj_list Struct Reference
[Object Lists]

Collaboration diagram for sobj_list:

Collaboration graph
[legend]

Detailed Description

Simple object list.


Data Fields

sobj_refcount_t refcount
 Reference counter.
void(* del )(void *)
 Destructor.
int n
 The number of elements in the list.
sobj_list_elementhead
 The list head.
sobj_list_elementtail
 The list tail.

Related Functions

(Note that these are not member functions.)

sobj_listnew_sobj_list (void)
 Create a new (empty) instance of a simple object list.
sobj_listnew_sobj_list_from_array (struct sobj *sobj)
 Create a new instance of a simple object list from an array object.
sobj_listnew_sobj_list_from_dict (struct sobj_dict *dict)
 Create a new instance of a simple object list from a simple object dictionary.
sobj_listnew_sobj_list_from_vec (struct sobj **vec, int n)
 Create a new instance of a simple object list from a vector of element values.
sobj_listsobj_list_copy (struct sobj_list *list)
 Create a copy of a simple object list.
sobj_listsobj_list_copy_unlocked (struct sobj_list *list)
 Create a copy of a simple object list.
void sobj_list_append (struct sobj_list *list, struct sobj *value)
 Append an element to a simple objects list.
void sobj_list_append_unlocked (struct sobj_list *list, struct sobj *value)
 Append an element to a simple objects list.
int sobj_list_insert (struct sobj_list *list, int index, struct sobj *value)
 Insert an element into a simple objects list.
int sobj_list_insert_unlocked (struct sobj_list *list, int index, struct sobj *value)
 Insert an element into a simple objects list.
sobjsobj_list_remove (struct sobj_list *list, int index)
 Remove an indexed element from a simple objects list.
sobjsobj_list_remove_unlocked (struct sobj_list *list, int index)
 Remove an indexed element from a simple objects list.
int sobj_list_remove_object (struct sobj_list *list, struct sobj *value)
 Remove a value from a simple objects list.
int sobj_list_remove_object_unlocked (struct sobj_list *list, struct sobj *value)
 Remove a value from a simple objects list.
int sobj_list_remove_equal (struct sobj_list *list, struct sobj *value, struct sobj_env *env)
 Remove a value from a simple objects list.
int sobj_list_remove_equal_unlocked (struct sobj_list *list, struct sobj *value, struct sobj_env *env)
 Remove a value from a simple objects list.
int sobj_list_find (struct sobj_list *list, struct sobj *value)
 Find a value in a simple objects list.
int sobj_list_find_unlocked (struct sobj_list *list, struct sobj *value)
 Find a value in a simple objects list.
int sobj_list_find_equal (struct sobj_list *list, struct sobj *value, struct sobj_env *env)
 Find a value in a simple objects list.
int sobj_list_find_equal_unlocked (struct sobj_list *list, struct sobj *value, struct sobj_env *env)
 Find a value in a simple objects list.
void sobj_list_clear (struct sobj_list *list)
 Clear a simple objects list (remove all elements).
void sobj_list_clear_unlocked (struct sobj_list *list)
 Clear a simple objects list (remove all elements).
int sobj_list_count (struct sobj_list *list)
 Get the number of elements stored in a simple objects list.
bool sobj_list_is_empty (struct sobj_list *list)
 Check if the list is empty.
int sobj_list_get_elements (struct sobj_list *list, struct sobj ***vec)
 Get all elements stored in a simple objects list.
int sobj_list_get_elements_unlocked (struct sobj_list *list, struct sobj **vec)
 Get all elements stored in a simple objects list.
sobjsobj_list_as_array (struct sobj_list *list, const char *cn)
 Convert a list to a keyless simple object array representing the list.
sobjsobj_list_as_array_unlocked (struct sobj_list *list, const char *cn)
 Convert a list to a keyless simple object array representing the list.
sobjsobj_list_as_mapping (struct sobj_list *list, const char *cn)
 Convert a list to a simple object array representing a mapping.
sobjsobj_list_as_mapping_unlocked (struct sobj_list *list, const char *cn)
 Convert a list to a simple object array representing a mapping.


Field Documentation

void(* sobj_list::del)(void *)
 

Destructor.

struct sobj_list_element* sobj_list::head
 

The list head.

int sobj_list::n
 

The number of elements in the list.

sobj_refcount_t sobj_list::refcount
 

Reference counter.

struct sobj_list_element* sobj_list::tail
 

The list tail.


The documentation for this struct was generated from the following file:
Generated on Sat Jul 23 16:06:58 2005 for sobject by  doxygen 1.3.9.1