! @brief Return parent of node, or self if a root node. @details Nodes are organized into trees (acyclic graphs) with a distinguished node (the "top-most" node) called the root node. A parent-child relationship is established between nodes to form a tree. Nodes can have zero or one parent. Nodes with zero parents are called root nodes. In the API, if a node has zero parents it is represented by
| 413 | @see Node::isRoot, Node::isAttached, CompressedVectorNode::CompressedVectorNode, Node::elementName |
| 414 | */ |
| 415 | Node Node::parent() const |
| 416 | { |
| 417 | return Node( impl_->parent() ); |
| 418 | } |
| 419 | |
| 420 | /*! |
| 421 | @brief Get absolute pathname of node. |