Updated: April 19, 2023 |
Narrow a PiPS entity to a PiPS group
#include <pips/publication.h>
pips_group_t* pips_group_narrow(pips_entity_t *const entity)
This function narrows the definition of the given pips_entity_t instance, expressing it as a pips_group_t instance. Runtime type information is used to ensure that the entity can be expressed as a group.
A pointer to the current PiPS entity expressed as a group. If the runtime constraints aren't satisfied, the operation fails and the function returns NULL.