List
Object Hierarchy:
Description:
[ CCode ( type_id = "osinfo_list_get_type ()" ) ]
public abstract class List : Object
Content:
Properties:
Creation methods:
Methods:
- public void add (Entity entity)
Adds a new entity to the list.
- public void add_all (List source)
Adds all entities from source
to
this.
- public void add_filtered (List source, Filter filter)
Adds all entities from source
which are matched by
filter
.
- public void add_intersection (List sourceOne, List sourceTwo)
Computes the intersection between sourceOne
and
sourceTwo
and adds the resulting list of entities to the this.
- public void add_union (List sourceOne, List sourceTwo)
Computes the union between sourceOne
and sourceTwo
and adds the resulting list of entities to the this.
- public unowned Entity find_by_id (string id)
Search the list looking for the entity with a matching unique
identifier.
- public Type get_element_type ()
Retrieves the type of the subclass of
Entity that may be stored in the list
- public List<unowned Entity> get_elements ()
Retrieve a linked list of all elements in the list.
- public int get_length ()
Retrieves the number of elements currently stored in the list
- public unowned Entity get_nth (int idx)
Retrieves the element in the list at position idx
.
- public List new_copy ()
Construct a new list that is filled with elements from
this
- public List new_filtered (Filter filter)
Construct a new list that is filled with elements from
this that match filter
- public List new_intersection (List sourceTwo)
Construct a new list that is filled with only the elements that are
present in both this and sourceTwo
.
- public List new_union (List sourceTwo)
Construct a new list that is filled with all the that are present in
either this and sourceTwo
.
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