gvaluearray.h File Reference

__G_VALUE_ARRAY_H__

Typedef GValueArray

typedef typedefG_BEGIN_DECLS struct _GValueArrayGValueArray

g_value_array_get_nth ( GValueArray *, guint )

IMPORT_C GValue *g_value_array_get_nth(GValueArray *value_array,
guintindex_
)

g_value_array_get_nth: : GValueArray to get a value from : index of the value of interest

Return a pointer to the value at containd in .

Returns: pointer to a value at in

g_value_array_new ( guint )

IMPORT_C GValueArray *g_value_array_new(guintn_prealloced)

g_value_array_new: : number of values to preallocate space for

Allocate and initialize a new GValueArray, optionally preserve space for elements. New arrays always contain 0 elements, regardless of the value of .

Returns: a newly allocated GValueArray with 0 values

g_value_array_free ( GValueArray * )

IMPORT_C voidg_value_array_free(GValueArray *value_array)

g_value_array_free: : GValueArray to free

Free a GValueArray including its contents.

g_value_array_copy ( const GValueArray * )

IMPORT_C GValueArray *g_value_array_copy(const GValueArray *value_array)

g_value_array_copy: : GValueArray to copy

Construct an exact copy of a GValueArray by duplicating all its contents.

Returns: Newly allocated copy of GValueArray

g_value_array_prepend ( GValueArray *, const GValue * )

IMPORT_C GValueArray *g_value_array_prepend(GValueArray *value_array,
const GValue *value
)

g_value_array_prepend: : GValueArray to add an element to : GValue to copy into GValueArray

Insert a copy of as first element of .

Returns: the GValueArray passed in as

g_value_array_append ( GValueArray *, const GValue * )

IMPORT_C GValueArray *g_value_array_append(GValueArray *value_array,
const GValue *value
)

g_value_array_append: : GValueArray to add an element to : GValue to copy into GValueArray

Insert a copy of as last element of .

Returns: the GValueArray passed in as

g_value_array_insert ( GValueArray *, guint, const GValue * )

IMPORT_C GValueArray *g_value_array_insert(GValueArray *value_array,
guintindex_,
const GValue *value
)

g_value_array_insert: : GValueArray to add an element to : insertion position, must be <= value_array->n_values : GValue to copy into GValueArray

Insert a copy of at specified position into .

Returns: the GValueArray passed in as

g_value_array_remove ( GValueArray *, guint )

IMPORT_C GValueArray *g_value_array_remove(GValueArray *value_array,
guintindex_
)

g_value_array_remove: : GValueArray to remove an element from : position of value to remove, must be < value_array->n_values

Remove the value at position from .

Returns: the GValueArray passed in as

g_value_array_sort ( GValueArray *, GCompareFunc )

IMPORT_C GValueArray *g_value_array_sort(GValueArray *value_array,
GCompareFunccompare_func
)

g_value_array_sort: : GValueArray to sort : function to compare elements

Sort using to compare the elements accoring to the semantics of GCompareFunc.

The current implementation uses Quick-Sort as sorting algorithm.

Returns: the GValueArray passed in as

g_value_array_sort_with_data ( GValueArray *, GCompareDataFunc, gpointer )

IMPORT_C GValueArray *g_value_array_sort_with_data(GValueArray *value_array,
GCompareDataFunccompare_func,
gpointeruser_data
)

g_value_array_sort_with_data: : GValueArray to sort : function to compare elements : extra data argument provided for

Sort using to compare the elements accoring to the semantics of GCompareDataFunc.

The current implementation uses Quick-Sort as sorting algorithm.

Returns: the GValueArray passed in as