#include <RslPlugin.h>
Public Member Functions | |
RslStructArray (const RslArg *arg) | |
Construct an RslStructArray from an RslArg. | |
RslStruct | operator[] (int i) const |
Get the specified element of this struct array. | |
int | GetLength () const |
Returns the array length. |
It provides an indexing operator that returns an RslStruct. For example:
RslStructArray array(argv[1]); int arrayLength = array.GetLength(); for (int i = 0; i < arrayLength; ++i) { RslStruct structure(array[i]); const RslArg* floatMember = structure[0]; RslFloatIter f(floatMember); int n = floatMember->NumValues(); for (int j = 0; j < n; ++j) { ... } }
|
Construct an RslStructArray from an RslArg.
|
|
Returns the array length.
|
|
Get the specified element of this struct array.
|