• Libosinfo 1.0 »
  • Classes »
  • Libosinfo.DeviceLinkList
  • Libosinfo.DeviceLinkList
    • Methods
    • Virtual Methods
    • Properties
    • Signals
    • Fields
    • Class Details
      • Libosinfo.DeviceLinkList
        • Libosinfo.DeviceLinkList.new()
        • Libosinfo.DeviceLinkList.get_devices()
        • Libosinfo.DeviceLinkList.new_copy()
        • Libosinfo.DeviceLinkList.new_filtered()
        • Libosinfo.DeviceLinkList.new_intersection()
        • Libosinfo.DeviceLinkList.new_union()
  • Libosinfo 1.0 »
  • Classes »
  • Libosinfo.DeviceLinkList
  • Libosinfo.DeviceLinkList
    • Methods
    • Virtual Methods
    • Properties
    • Signals
    • Fields
    • Class Details
      • Libosinfo.DeviceLinkList
        • Libosinfo.DeviceLinkList.new()
        • Libosinfo.DeviceLinkList.get_devices()
        • Libosinfo.DeviceLinkList.new_copy()
        • Libosinfo.DeviceLinkList.new_filtered()
        • Libosinfo.DeviceLinkList.new_intersection()
        • Libosinfo.DeviceLinkList.new_union()

Libosinfo.DeviceLinkList¶

g GObject.Object GObject.Object Libosinfo.List Libosinfo.List GObject.Object->Libosinfo.List Libosinfo.DeviceLinkList Libosinfo.DeviceLinkList Libosinfo.List->Libosinfo.DeviceLinkList

Subclasses:

None

Methods¶

Inherited:

Libosinfo.List (14), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_devices (filter)

new_copy ()

new_filtered (filter)

new_intersection (sourceTwo)

new_union (sourceTwo)

Virtual Methods¶

Inherited:

GObject.Object (7)

Properties¶

Inherited:

Libosinfo.List (1)

Signals¶

Inherited:

GObject.Object (1)

Fields¶

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.List

r

Class Details¶

class Libosinfo.DeviceLinkList(**kwargs)¶
Bases:

Libosinfo.List

Abstract:

No

Structure:

Libosinfo.DeviceLinkListClass

classmethod new()¶
Returns:

an empty devicelink list

Return type:

Libosinfo.DeviceLinkList

Construct a new devicelink list that is initially empty.

get_devices(filter)¶
Parameters:

filter (Libosinfo.Filter or None) – an optional device property filter

Returns:

A list of devices

Return type:

Libosinfo.DeviceList

Get all devices matching a given filter

new_copy()¶
Returns:

a copy of the devicelink list

Return type:

Libosinfo.DeviceLinkList

Construct a new devicelink list that is filled with devicelinks from self

Deprecated since version 0.2.2: Use Libosinfo.List.new_copy() instead.

new_filtered(filter)¶
Parameters:

filter (Libosinfo.Filter) – the filter to apply

Returns:

a filtered copy of the devicelink list

Return type:

Libosinfo.DeviceLinkList

Construct a new devicelink list that is filled with devicelinks from self that match filter

Deprecated since version 0.2.2: Use Libosinfo.List.new_filtered() instead.

new_intersection(sourceTwo)¶
Parameters:

sourceTwo (Libosinfo.DeviceLinkList) – the second devicelink list to copy

Returns:

an intersection of the two devicelink lists

Return type:

Libosinfo.DeviceLinkList

Construct a new devicelink list that is filled with only the devicelinks that are present in both self and sourceTwo.

Deprecated since version 0.2.2: Use Libosinfo.List.new_intersection() instead.

new_union(sourceTwo)¶
Parameters:

sourceTwo (Libosinfo.DeviceLinkList) – the second devicelink list to copy

Returns:

a union of the two devicelink lists

Return type:

Libosinfo.DeviceLinkList

Construct a new devicelink list that is filled with all the devicelinks that are present in either self and sourceTwo.

Deprecated since version 0.2.2: Use Libosinfo.List.new_union() instead.