List
Object Hierarchy:
Description:
All known sub-classes:
Namespace: Osinfo
Package: libosinfo-1.0
Content:
Properties:
- public Type element_type { get; construct; }
The specialization of the list.
Creation methods:
- protected List ()
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 byfilter
. - public void add_intersection (List sourceOne, List sourceTwo)
Computes the intersection between
sourceOne
andsourceTwo
and adds the resulting list of entities to the this. - public void add_union (List sourceOne, List sourceTwo)
Computes the union between
sourceOne
andsourceTwo
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