A wrapper class for the core proto_node structure, providing tree traversal and data access.
More...
#include <proto_node.h>
|
| | ProtoNode (proto_node *node=NULL, ProtoNode *parent=nullptr) |
| | Constructs a new ProtoNode instance.
|
| |
|
| ~ProtoNode () |
| | Destroys the ProtoNode.
|
| |
| bool | isValid () const |
| | Checks if the protocol node is valid.
|
| |
| bool | isChild () const |
| | Checks if this node is a child of another node.
|
| |
| bool | isExpanded () const |
| | Checks if the node is expanded in the view.
|
| |
| proto_node * | protoNode () const |
| | Retrieves the underlying core proto_node structure.
|
| |
| ProtoNode * | child (int row) |
| | Retrieves a specific child node by its row index.
|
| |
| int | childrenCount () const |
| | Retrieves the total number of child nodes.
|
| |
| int | row () |
| | Retrieves the row index of this node relative to its parent.
|
| |
| ProtoNode * | parentNode () |
| | Retrieves the parent node of this node.
|
| |
| QString | labelText () const |
| | Retrieves the display label text for this node.
|
| |
| ChildIterator | children () const |
| | Retrieves a child iterator for traversing this node's children.
|
| |
A wrapper class for the core proto_node structure, providing tree traversal and data access.
◆ ProtoNode()
Constructs a new ProtoNode instance.
- Parameters
-
| node | The underlying core proto_node, defaults to NULL. |
| parent | The parent ProtoNode, defaults to nullptr. |
◆ child()
Retrieves a specific child node by its row index.
- Parameters
-
| row | The index of the child node to retrieve. |
- Returns
- A pointer to the child ProtoNode.
◆ children()
Retrieves a child iterator for traversing this node's children.
- Returns
- A ChildIterator positioned at the first child.
◆ childrenCount()
| int ProtoNode::childrenCount |
( |
| ) |
const |
Retrieves the total number of child nodes.
- Returns
- The child count.
◆ isChild()
| bool ProtoNode::isChild |
( |
| ) |
const |
Checks if this node is a child of another node.
- Returns
- True if it is a child node, false otherwise.
◆ isExpanded()
| bool ProtoNode::isExpanded |
( |
| ) |
const |
Checks if the node is expanded in the view.
- Returns
- True if expanded, false otherwise.
◆ isValid()
| bool ProtoNode::isValid |
( |
| ) |
const |
Checks if the protocol node is valid.
- Returns
- True if the underlying node is valid, false otherwise.
◆ labelText()
| QString ProtoNode::labelText |
( |
| ) |
const |
Retrieves the display label text for this node.
- Returns
- The label text string.
◆ parentNode()
Retrieves the parent node of this node.
- Returns
- A pointer to the parent ProtoNode.
◆ protoNode()
Retrieves the underlying core proto_node structure.
- Returns
- A pointer to the proto_node.
◆ row()
Retrieves the row index of this node relative to its parent.
- Returns
- The row index.
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