20.07.2015 Views

PhD Thesis - staffweb - University of Greenwich

PhD Thesis - staffweb - University of Greenwich

PhD Thesis - staffweb - University of Greenwich

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX 5 : DATA DICTIONARY FOR GEOMETRY CLASSES IN SMARTFIREIt should be noted that most <strong>of</strong> the arrays that hold geometry data are declared asdynamic arrays <strong>of</strong> pointers to objects (i.e. G_Class ** g_object_array; ). This is not as flexible as alinked list storage but does have the advantage <strong>of</strong> allowing individual elements <strong>of</strong> the array to bereplaced with new members if required. It is also possible to extend the storage quite simply bycopying the pointers into a temporary array, extending the original array and then copying backthe pointers. This is clearly a much more efficient strategy than copying the objects themselves,particularly for cases where the geometry objects contain significant amounts <strong>of</strong> data as membervariables.Some <strong>of</strong> the class functions (and data members) described in this document are forinternal class use and should not be used by class users. This is particularly true <strong>of</strong> theGroup_Class where garbage collection routines are defined.Appendix 11.5 Page 145-4 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!