Camel.WeakRefGroup

Fields

None

Methods

class

new ()

get ()

ref ()

set (object)

unref ()

Details

class Camel.WeakRefGroup
classmethod new()
Returns:

A new Camel.WeakRefGroup instance, which should be freed with Camel.WeakRefGroup.unref() when no longer needed.

Return type:

Camel.WeakRefGroup

New in version 3.24.

get()
Returns:

A referenced object associated with self, or None, when no object had been set to it. Use GObject.Object.unref() to free it, when no longer needed.

Return type:

object or None

New in version 3.24.

ref()
Returns:

the self

Return type:

Camel.WeakRefGroup

Increases a reference count of the self.

New in version 3.24.

set(object)
Parameters:

object (object or None) – a GObject.Object descendant, or None

Sets the object as the object help by this self. If the object is None, then unsets any previously set.

New in version 3.24.

unref()

Decreases a reference count of the self. The self is freed when the reference count reaches zero.

New in version 3.24.