ValueArray
Object Hierarchy:
Description:
Namespace: GLib
Package: gobject-2.0
Content:
Creation methods:
-
public ValueArray (uint n_prealloced)
Allocate and initialize a new ValueArray, optionally
preserve space for n_prealloced elements. New arrays always contain 0 elements, regardless of the value of
n_prealloced.
Methods:
-
public ValueArray copy ()
Construct an exact copy of a ValueArray by duplicating
all its contents.
-
public unowned Value? get_nth (uint index_)
Return a pointer to the value at index_ containd in value_array.
-
public void append (Value value)
Insert a copy of value as last element of value_array. If value
is null, an uninitialized value is appended.
-
public void prepend (Value value)
Insert a copy of value as first element of value_array. If value
is null, an uninitialized value is prepended.
-
public void insert (uint index_, Value value)
Insert a copy of value at specified position into value_array. If value
is null, an uninitialized value is inserted.
-
public void remove (uint index_)
Remove the value at position index_ from value_array.
-
public void sort (CompareFunc compare_func)
Sort value_array using compare_func to compare the elements according to the
semantics of CompareFunc.
-
public void sort_with_data (CompareDataFunc compare_func)
Sort value_array using compare_func to compare the elements according to the
semantics of CompareDataFunc.
Fields: