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