An iterator for traversing the child nodes of a ProtoNode.
More...
#include <proto_node.h>
|
|
typedef struct _proto_node * | NodePtr |
| | Pointer type for the underlying proto_node structure.
|
| |
An iterator for traversing the child nodes of a ProtoNode.
◆ ChildIterator()
| ProtoNode::ChildIterator::ChildIterator |
( |
NodePtr |
n = Q_NULLPTR | ) |
|
Constructs a new ChildIterator.
- Parameters
-
| n | The starting node for the iterator, defaults to Q_NULLPTR. |
◆ element()
| ProtoNode ProtoNode::ChildIterator::element |
( |
| ) |
|
Retrieves the ProtoNode element at the current iterator position.
- Returns
- The current ProtoNode.
◆ hasNext()
| bool ProtoNode::ChildIterator::hasNext |
( |
| ) |
|
Checks if there is a subsequent child node.
- Returns
- True if another child exists, false otherwise.
◆ next()
Advances the iterator to the next child node.
- Returns
- A ChildIterator pointing to the next node.
◆ node
| NodePtr ProtoNode::ChildIterator::node |
|
protected |
Pointer to the current underlying protocol tree node.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/utils/proto_node.h
- /builds/wireshark/wireshark/ui/qt/utils/proto_node.cpp