Lines Matching defs:node
21 #include "xml/node.h"
26 bool id_permitted(Node const *node);
30 * @brief Get the next node in sibling order
31 * @param node The origin node
32 * @return The next node in sibling order
35 inline Node *next_node(Node *node) {
36 return ( node ? node->next() : NULL );
38 inline Node const *next_node(Node const *node) {
39 return ( node ? node->next() : NULL );
45 * @brief Get the previous node in sibling order
47 * This method, unlike Node::next(), is a linear search over the children of @c node's parent.
48 * The return value is NULL when the node has no parent or is first in the sibling order.
50 * @param node The origin node
51 * @return The previous node in sibling order, or NULL
54 Node *previous_node(Node *node);
55 inline Node const *previous_node(Node const *node) {
56 return previous_node(const_cast<Node *>(node));
62 * @brief Get the node's parent
63 * @param node The origin node
64 * @return The node's parent
67 inline Node *parent_node(Node *node) {
68 return ( node ? node->parent() : NULL );
70 inline Node const *parent_node(Node const *node) {
71 return ( node ? node->parent() : NULL );