#include <RslPlugin.h>
Public Member Functions | |
| RslArrayIter (const RslArg *arg) | |
| Construct an array iterator from an argument. | |
| RslArrayIter (const T *data, int length, const RslContext *ctx) | |
| Construct a uniform array iterator for user-provided data. | |
| T * | operator * () |
| Dereference this iterator, yielding a pointer to the start of the array. | |
| T & | operator[] (int x) |
| The array index operator can be used to access individual array members. | |
| RslArrayIter< T > & | operator++ () |
| Increment this iterator to point to the array for the next active point. | |
| RslArrayIter< T > | operator++ (int) |
| Post-increment this iterator. | |
| bool | IsVarying () const |
| Returns true if the iterator is varying. | |
| int | GetLength () const |
| Returns the array length. | |
... example here ...
|
||||||||||
|
Construct an array iterator from an argument.
|
|
||||||||||||||||||||
|
Construct a uniform array iterator for user-provided data. This is useful for optional arguments with default values. |
|
|||||||||
|
Returns the array length.
|
|
|||||||||
|
Returns true if the iterator is varying. Note that uniform iterators need not be incremented (although it does no harm). |
|
|||||||||
|
Dereference this iterator, yielding a pointer to the start of the array.
|
|
||||||||||
|
Post-increment this iterator. Returns a copy of the iterator prior to incrementing, so it's not terribly efficient. The dummy integer argument is the standard C++ way of distinguishing between pre- and post-increment operators. |
|
|||||||||
|
Increment this iterator to point to the array for the next active point. An internal acceleration structure makes this a constant-time operation. |
|
||||||||||
|
The array index operator can be used to access individual array members.
|
1.4.6