\( % Arcus cosine. \def\acos{\cos^{-1}} % Vector projection. \def\projection#1#2{{proj_{#1}\left(#2\right)}} % Vector rejection. \def\rejection#1#2{{rej_{#1}\left(#2\right)}} % Norm. \def\norm#1{{\left\|#1\right\|}} % Cross product. \def\cross#1#2{\mathit{cross}\left(#1,#2\right)} % Dot product. \def\dot#1#2{{#1 \cdot #2}} % Magnitude. \def\mag#1{{\left|#1\right}} \def\group#1{\left(#1\right)}} \def\sbgrp#1{\left\{#1\right\}} \)

Ring1_PointerList_initialize

Initialize a pointer list.

Ring1_Result
Ring1_PointerList_initialize
  (
    Ring1_PointerList *self,
    Ring1_Collection_AddedCallback *added,
    Ring1_Collection_RemovedCallback *removed
  )

This function initializes an uninitialized pointer list with a pointer list's default capacity and the specified added and removed callbacks. This pointer list must not be initialized, otherwise the behavior of this function is undefined.

Parameter variables

self
A pointer to the pointer list.
added
A pointer to an Ring1_Collection_AddedCallback function or a null pointer. This function is invoked on an element if it is added to the pointer list.
removed
A pointer to an Ring1_Collection_RemovedCallback function or a null pointer. This function is invoked on an element if it is removed from the pointer list.

Return Values

Ring1_Result_Success on success, Ring1_Result_Failure on failure.