MGH_EXAMPLE_CONTAINER Name
MGH_EXAMPLE_CONTAINER Purpose
Example code for container classes. Reports time for various operations.
Positional Parameters
option (input, scalar integer)
This parameter controls the container type. Valid values are 0-3.
Keyword Parameters
GET (input, switch)
Controls whether to retrieve items from the container after they
are added. Default is 1.
N_ITEMS (input, scalar integer)
Number of items to process. Default is 20,000.
###########################################################################
This software is provided subject to the following conditions:
1. NIWA makes no representations or warranties regarding the
accuracy of the software, the use to which the software may
be put or the results to be obtained from the use of the
software. Accordingly NIWA accepts no liability for any loss
or damage (whether direct of indirect) incurred by any person
through the use of or reliance on the software.
2. NIWA is to be acknowledged as the original author of the
software where the software is used or presented in any form.
###########################################################################
Modification History
Mark Hadfield, Oct 1999:
Written.
Mark Hadfield, Sep 2001:
Added an option to use a plain string array as a container,
with the same resizing code as is used in MGH_Vector.