124
* Returns the item at the specified index in this list.
126
* @param index zero-based index of the item to be returned
128
* @return the item at the specified index in the list
123
130
gpointer vala_list_get (ValaList* self, gint index) {
124
131
return VALA_LIST_GET_INTERFACE (self)->get (self, index);
136
* Sets the item at the specified index in this list.
138
* @param index zero-based index of the item to be set
128
140
void vala_list_set (ValaList* self, gint index, gconstpointer item) {
129
141
VALA_LIST_GET_INTERFACE (self)->set (self, index, item);
146
* Returns the index of the first occurence of the specified item in
149
* @return the index of the first occurence of the specified item, or
150
* -1 if the item could not be found
133
152
gint vala_list_index_of (ValaList* self, gconstpointer item) {
134
153
return VALA_LIST_GET_INTERFACE (self)->index_of (self, item);
158
* Inserts an item into this list at the specified position.
160
* @param index zero-based index at which item is inserted
161
* @param item item to insert into the list
138
163
void vala_list_insert (ValaList* self, gint index, gconstpointer item) {
139
164
VALA_LIST_GET_INTERFACE (self)->insert (self, index, item);
169
* Removes the item at the specified index of this list.
171
* @param index zero-based index of the item to be removed
143
173
void vala_list_remove_at (ValaList* self, gint index) {
144
174
VALA_LIST_GET_INTERFACE (self)->remove_at (self, index);
187
* Represents a collection of items in a well-defined order.
156
189
GType vala_list_get_type (void) {
157
190
static volatile gsize vala_list_type_id__volatile = 0;
158
191
if (g_once_init_enter (&vala_list_type_id__volatile)) {