Back to CERTI User Documentation index
Variable Array

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;

Generated on Fri Feb 28 2014 16:33:59 for CERTIUserDocumentation by doxygen 1.8.6