Top | ![]() |
![]() |
![]() |
![]() |
|
katze_array_new () |
|
katze_array_is_a () |
|
katze_array_add_item () |
|
katze_array_remove_item () |
|
katze_array_get_nth_item () |
|
katze_array_is_empty () |
|
katze_array_get_item_index () |
|
katze_array_find_token () |
|
katze_array_find_uri () |
|
katze_array_get_length () |
|
katze_array_move_item () |
|
katze_array_get_items () |
|
katze_array_peek_items () |
#define | KATZE_ARRAY_FOREACH_ITEM() |
#define | KATZE_ARRAY_FOREACH_ITEM_L() |
|
katze_array_clear () |
|
katze_array_update () |
KatzeArray * katze_array_new ();
GType type
Creates a new type
items.
The array will keep a reference on each object until it is removed from the array.
gboolean katze_array_is_a (,
KatzeArray *array);
GType is_a_type
Checks whether the array is compatible with items of the specified type.
void katze_array_add_item (,
KatzeArray *array);
gpointer item
Adds an item to the array.
If item
is a
void katze_array_remove_item (,
KatzeArray *array);
gpointer item
Removes an item from the array.
If item
is a
gpointer katze_array_get_nth_item (,
KatzeArray *array);
guint n
Retrieves the item in array
at the position n
.
gboolean katze_array_is_empty ();
KatzeArray *array
Determines whether array
is empty.
gint katze_array_get_item_index (,
KatzeArray *array);
gpointer item
Retrieves the index of the item in array
.
gpointer katze_array_find_token (,
KatzeArray *arrayconst
);gchar *token
Looks up an item in the array which has the specified token.
This function will fail and return NULL if the
Note that token
is by definition unique to one item.
Since 0.4.4 token
can be a "token keywords" string.
gpointer katze_array_find_uri (,
KatzeArray *arrayconst
);gchar *uri
Looks up an item in the array which has the specified URI.
This function will fail and return NULL if the
Since:
guint katze_array_get_length ();
KatzeArray *array
Retrieves the number of items in array
.
void katze_array_move_item (,
KatzeArray *array,
gpointer item);
gint position
Moves item
to the position position
.
array |
a |
|
item |
the item being moved. |
[type GObject] |
position |
the new position of the item |
Since:
GList * katze_array_get_items ();
KatzeArray *array
Retrieves the items as a list.
Since:
GList * katze_array_peek_items ();
KatzeArray *array
Peeks at the KatzeArray's internal list of items.
void katze_array_clear ();
KatzeArray *array
Deletes all items currently contained in array
.