Xmlb.NodeChildIter¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
dummy1 |
r |
||
dummy2 |
r |
||
dummy3 |
r |
||
dummy4 |
r |
||
dummy5 |
r |
||
dummy6 |
r |
Methods¶
|
|
|
Details¶
- class Xmlb.NodeChildIter¶
A
Xmlb.NodeChildIterstructure represents an iterator that can be used to iterate over the children of aXmlb.Node.Xmlb.NodeChildIterstructures are typically allocated on the stack and then initialized withXmlb.NodeChildIter.init().New in version 0.3.4.
- init(self)¶
-
Initializes a child iterator for the node’s children and associates it with self. The
Xmlb.NodeChildIterstructure is typically allocated on the stack and does not need to be freed explicitly.New in version 0.3.4.
- next()¶
- Returns:
Falseif the last child has been reached.- child:
Destination of the returned child
- Return type:
Returns the current child and advances the iterator. The retrieved
Xmlb.Nodechild needs to be dereferenced withGObject.Object.unref(). Example:XbNodeChildIter iter; g_autoptr(XbNode) child = NULL; xb_node_child_iter_init (&iter, node); while (xb_node_child_iter_next (&iter, &child)) { // do something with the node child g_clear_pointer (&child, g_object_unref); }
New in version 0.3.4.