Name
afc_nodemaster_create_array -- Creates an array rappresentation of the list
Synopsis
struct Node * *
afc_nodemaster_create_array
(NodeMaster * nm);
Description
This method snapshots the current NodeMaster contents
inside an ARRAY of pointers.
This method is usefull if you want to access a large amount
of items data very quicly.
Inputs
- nm
Pointer to a valid NodeMaster class.
Result
The generated array. NULL means something went wrong (maybe you are trying to
create an array from an empty NodeMaster).
Note
if the Array inside the NodeMaster has been already
generated, then it will be freed and generated again.
for performance reasons, the array will *not* be kept aligned
with the list data automatically. So, if you add/del
some elements, you'll have to regenerate the array by yourself.