Ufo.Group

g GObject.Object GObject.Object Ufo.Group Ufo.Group GObject.Object->Ufo.Group

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (targets, context, pattern)

finish ()

get_num_targets ()

pop_input_buffer (target)

pop_output_buffer (requisition)

push_input_buffer (target, input)

push_output_buffer (buffer)

set_num_expected (target, n_expected)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Ufo.Group(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ufo.GroupClass

Main object for organizing filters. The contents of the Ufo.Group structure are private and should only be accessed via the provided API.

classmethod new(targets, context, pattern)
Parameters:
  • targets ([Ufo.Node]) – A list of Ufo.Node targets

  • context (object or None) – A cl_context on which the targets should operate on.

  • pattern (Ufo.SendPattern) – Pattern to distribute data among the targets

Returns:

A new Ufo.Group.

Return type:

Ufo.Group

Create a new Ufo.Group.

finish()
get_num_targets()
Return type:

int

pop_input_buffer(target)
Parameters:

target (Ufo.Task) – The Ufo.Task that is a target in self

Returns:

A buffer that must be released with Ufo.Group.push_input_buffer().

Return type:

Ufo.Buffer

pop_output_buffer(requisition)
Parameters:

requisition (Ufo.Requisition) – Size of the buffer.

Returns:

A newly allocated buffer or a re-used buffer that must be released with Ufo.Group.push_output_buffer().

Return type:

Ufo.Buffer

push_input_buffer(target, input)
Parameters:
push_output_buffer(buffer)
Parameters:

buffer (Ufo.Buffer) –

set_num_expected(target, n_expected)
Parameters: