SubArray
Object Hierarchy:
Description:
public class SubArray<G> : Object, Traversable<G>, Iterable<G>
An unowned slice of an array.
Content:
Properties:
- public int size { get; }
The number of elements.
Creation methods:
Methods:
- public unowned G @get (int index)
- public void @set (int index, owned G item)
- public void copy (int start, SubArray<G> src, int src_start, int count)
Copies the data from src into this.
- public void copy_array (int start, G[] src, int src_start, int count)
Copies the data from src into this.
- public unowned G[] get_data ()
Gets the array data.
- public void sort (owned CompareDataFunc<G>? compare_func = null)
Sorts the elements by comparing with the specified compare function.
The sort is stable.
- public SubArray<G> sub_array (int start, int stop)
Creates a new sub array slice.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Gee.Traversable
- @foreach
- all_match
- any_match
- chop
- element_type
- filter
- first_match
- flat_map
- fold
- map
- max
- min
- order_by
- scan
- stream
- tee
All known members inherited from interface Gee.Iterable