GLib.TrashStack¶
Fields¶
| Name | Type | Access | Description |
|---|---|---|---|
| next | GLib.TrashStack |
r/w | pointer to the previous element of the stack, gets stored in the first sizeof (gpointer) bytes of the element |
Methods¶
| class | height (stack_p) |
| class | peek (stack_p) |
| class | pop (stack_p) |
| class | push (stack_p, data_p) |
Details¶
-
class
GLib.TrashStack¶ Each piece of memory that is pushed onto the stack is cast to a
GLib.TrashStack.Deprecated since version 2.48:
GLib.TrashStackis deprecated without replacement-
classmethod
height(stack_p)[source]¶ Parameters: stack_p ( GLib.TrashStack) – aGLib.TrashStackReturns: the height of the stack Return type: intReturns the height of a
GLib.TrashStack.Note that execution of this function is of O(N) complexity where N denotes the number of items on the stack.
Deprecated since version 2.48:
GLib.TrashStackis deprecated without replacement
-
classmethod
peek(stack_p)[source]¶ Parameters: stack_p ( GLib.TrashStack) – aGLib.TrashStackReturns: the element at the top of the stack Return type: objectorNoneReturns the element at the top of a
GLib.TrashStackwhich may beNone.Deprecated since version 2.48:
GLib.TrashStackis deprecated without replacement
-
classmethod
pop(stack_p)[source]¶ Parameters: stack_p ( GLib.TrashStack) – aGLib.TrashStackReturns: the element at the top of the stack Return type: objectorNonePops a piece of memory off a
GLib.TrashStack.Deprecated since version 2.48:
GLib.TrashStackis deprecated without replacement
-
classmethod
push(stack_p, data_p)[source]¶ Parameters: - stack_p (
GLib.TrashStack) – aGLib.TrashStack - data_p (
object) – the piece of memory to push on the stack
Pushes a piece of memory onto a
GLib.TrashStack.Deprecated since version 2.48:
GLib.TrashStackis deprecated without replacement- stack_p (
-
classmethod