RslStructArray Class Reference

An RslStructArray represents an array of structs. More...

#include <RslPlugin.h>

List of all members.

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.


Detailed Description

An RslStructArray represents an array of structs.

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) {
                ...
            }
        }


Constructor & Destructor Documentation

RslStructArray::RslStructArray const RslArg arg  )  [inline]
 

Construct an RslStructArray from an RslArg.


Member Function Documentation

int RslStructArray::GetLength  )  const [inline]
 

Returns the array length.

RslStruct RslStructArray::operator[] int  i  )  const [inline]
 

Get the specified element of this struct array.


The documentation for this class was generated from the following file: