The template
HLAvariableArray<DATATYPE>
defines an array of a variable number of DATATYPE elements.
The size() member must be set before accessing the data. No data are moved when the size() is changed.
For example:
+-------------+----------------+-------------+-----------------+-----------+ | Name | Element type | Cardinality | Encoding | Semantics | +-------------+----------------+-------------+-----------------+-----------+ | List | HLAinteger32BE | Dynamic | HLAvaribleArray | | +-------------+----------------+-------------+-----------------+-----------+ typedef HLAvariableArray<HLAinteger32BE> List; HLAdata<List> value; (*value).set_size(2); (*value)[0] = 100; (*value)[1] = 200;