BL_POS_LIST_SET_POSITIONS_AE(3)

LIBRARY
#include <biolibc/pos-list.h>
-lbiolibc -lxtend

SYNOPSIS

BL_POS_LIST_SET_POSITIONS_AE(ptr, c, new_positions_element)

ARGUMENTS
ptr                     Pointer to a bl_pos_list_t structure
c                       Subscript to positions array
new_positions_element   New value for positions[c]

DESCRIPTION
Mutator macro for positions array elements. Use this macro to set an element of positions in a bl_pos_list_t structure from functions that are not members of the class. This allows separation of implementation from interface. While the implementation of the bl_pos_list_t structure may change, effort is made to preserve the API of functions and macros used to access it. Note that there is an equivalent function bl_pos_list_set_positions_ae(), which performs this function with data verification. Use the function version for more robust code with a slight performance penalty if the value of new_positions_element is not validated by other means.

EXAMPLES
bl_pos_list_t   bl_pos_list;
size_t          c;
uint64_t *      new_positions_element;
BL_POS_LIST_SET_POSITIONS_AE(&bl_pos_list, c, new_positions_element);

SEE ALSO
bl_pos_list_set_positions_ae(3)
See biolibc/pos-list.h for a full list of macros.