Find the parent of a component field

_saf_find_parent_field is a function defined in field.c.

Synopsis:

SAF_Field * _saf_find_parent_field(SAF_ParMode pmode, SAF_Field *component_field, SAF_Field *retval)

Formal Arguments:

  • component_field: Field for which we are searching for a parent.
  • retval: [OUT] Optional buffer in which to store the result. If this is NULL then a buffer will be allocated for the return value.

Description: Find the parent of a component field. Find the field who has the input field as a component. This function caches the parent field in the component field in order to keep the performance good.

Preconditions:

  • pmode must be valid. (low-cost)

See Also:

  • Fields: Introduction for current chapter