|
visageSDK
|
This is a templated structure that can store an array of values of varying types, including: More...
#include <VisageConfiguration.h>
This is a templated structure that can store an array of values of varying types, including:
It is exclusively used in conjunction with VisageConfiguration class as means for obtaining and manipulation of array type configuration parameters (such as smoothing_factors or au_names).
Allocated memory is managed automatically by a destructor that deallocates its internal arrays at the end of its lifetime.
Following code examples demonstrate:
A new VsCfgArr may be created as follows:
This would create a VsCfgArr that allocates space for 6 values of the integer type. The parameters supplied to the VsCfgArr constructor should be suited to the type and number of items that you wish to store:
It may also be created from a pre-existing array:
A VsCfgArr's destructor automatically deallocates its internal arrays at the end of its lifetime.
The values stored in a VsCfgArr which contains floating-point data may be accessed as follows:
Similarly for a VsCfgArr containing an array of integer values:
For information on whether a specific parameter is stored as a floating-point or integer data type, please refer to the respective setter or getter function for that parameter.
The size/number of elements stored in a VsCfgArr can be obtained by the size member of VsCfgArr. Thus, for example, an iteration over a VsCfgArr array could be done in the following manner:
As shown in the above example values can be set directly via standard [] bracket operator.
Definition at line 129 of file VisageConfiguration.h.
1.8.13