Lines Matching full:parent

56  * @param[in] parentDictionary - dictionary used for the parent of this node.
65 // If the node name is NULL, we have to use parent dictionary. in bejGetRelatedDictionary()
71 // If the parent is using annotation dictionary, that means the parent is an in bejGetRelatedDictionary()
88 * parent.
90 * @param[in] nodeIndex - index of this node within its parent.
92 * this node's parent.
109 // its parent's info. in bejFindSeqNumAndChildDictOffset()
136 // If this node's dictionary and its parent's dictionary is different, in bejFindSeqNumAndChildDictOffset()
415 * @param parentDictionary - dictionary used by this node's parent.
420 * node's parent.
470 * @brief Update metadata of a parent node.
473 * @param parentDictionary - dictionary used by this node's parent.
475 * node's parent.
476 * @param node - a pointer to the parent node.
524 * @param parent - parent node.
525 * @param stack - stack holding parent nodes.
529 struct RedfishPropertyParent* parent, in bejProcessChildNodes() argument
532 // Get the next child of the parent. in bejProcessChildNodes()
533 void* childPtr = parent->metaData.nextChild; in bejProcessChildNodes()
535 // Process all the children belongs to the parent. in bejProcessChildNodes()
543 dictionaries, parent->metaData.dictionary, in bejProcessChildNodes()
544 parent->metaData.childrenDictPropOffset, childPtr, in bejProcessChildNodes()
545 parent->metaData.nextChildIndex)); in bejProcessChildNodes()
548 bejParentGoToNextChild(parent, childPtr); in bejProcessChildNodes()
553 dictionaries, parent->metaData.dictionary, childPtr, in bejProcessChildNodes()
554 parent->metaData.nextChildIndex, in bejProcessChildNodes()
555 parent->metaData.childrenDictPropOffset)); in bejProcessChildNodes()
556 // Use the child value size to update the parent value size. in bejProcessChildNodes()
558 // V: Include the child size in parent's value size. in bejProcessChildNodes()
559 parent->metaData.vSize += in bejProcessChildNodes()
562 // Get the next child belongs to the parent. in bejProcessChildNodes()
563 childPtr = bejParentGoToNextChild(parent, childPtr); in bejProcessChildNodes()
585 // Push the root to the stack. Because we are not done with the parent node in bejUpdateNodeMetadata()
586 // yet. Need to figure out all bytes need to encode children of this parent, in bejUpdateNodeMetadata()
587 // and save it in the parent metadata. in bejUpdateNodeMetadata()
592 // Get the parent at the top of the stack. Stack is only popped if the in bejUpdateNodeMetadata()
593 // parent stack entry has no pending children; That is in bejUpdateNodeMetadata()
594 // parent->metaData.nextChild == NULL. in bejUpdateNodeMetadata()
595 struct RedfishPropertyParent* parent = in bejUpdateNodeMetadata() local
598 // Calculate metadata of all the child nodes of the current parent node. in bejUpdateNodeMetadata()
601 RETURN_IF_IERROR(bejProcessChildNodes(dictionaries, parent, stack)); in bejUpdateNodeMetadata()
604 // parent's child nodes have been processed. If not, do not pop the in bejUpdateNodeMetadata()
606 if (parent != stack->stackPeek(stack->stackContext)) in bejUpdateNodeMetadata()
612 // Then "parent" is the top element of the stack. in bejUpdateNodeMetadata()
613 // All the children of "parent" has been processed. in bejUpdateNodeMetadata()
615 // Remove the "parent" from the stack. in bejUpdateNodeMetadata()
616 parent = stack->stackPop(stack->stackContext); in bejUpdateNodeMetadata()
618 // parent's value. in bejUpdateNodeMetadata()
619 parent->metaData.sflSize += in bejUpdateNodeMetadata()
620 bejNnintEncodingSizeOfUInt(parent->metaData.vSize); in bejUpdateNodeMetadata()
623 // "parent" variable, we should add that to the value size of this in bejUpdateNodeMetadata()
624 // node's parent. Since we already popped this node from the stack, top in bejUpdateNodeMetadata()
625 // of the stack element is this nodes's parent. "parentsParent" can be in bejUpdateNodeMetadata()
626 // NULL if the node pointed by "parent" variable is the root. in bejUpdateNodeMetadata()
631 // V: Include the total size to encode the current parent in its in bejUpdateNodeMetadata()
632 // parent's value size. in bejUpdateNodeMetadata()
634 (parent->metaData.sflSize + parent->metaData.vSize); in bejUpdateNodeMetadata()