Loading...
Searching...
No Matches
VdfSubrangeView< typename > Class Template Reference

This class enables iteration over subranges of input values, where each subrange contains values originating from one unique topological source. More...

#include <subrangeView.h>

Detailed Description

template<typename>
class VdfSubrangeView< typename >

This class enables iteration over subranges of input values, where each subrange contains values originating from one unique topological source.

These data sources may be from unique outputs in the network, or from unique sources that have been combined into a single boxed value.

For example, when iterating over values on an input that is connected to multiple outputs, VdfReadIterator visits these values in sequential order. The VdfReadIterator does not differentiate between the multiple data sources, so long as there is a dependency on the input values that these data sources provide. Usually, this is the desired behavior. Sometimes, however, the client code may want to differentiate between the values based on the data source. This is important, for example, when the client code wants to associate input values of variable length, provided on two or more inputs that source from the same number of unique data sources.

The VdfSubrangeView provides an iterator range for each unique data source. It may be used like this:

VdfSubrangeView<VdfReadIteratorRange<double>> subranges(ctx, _tokens->in);
for (const VdfReadIteratorRange<double> &subrange : subranges) {
DoSomethingWithData(subrange.begin(), subrange.end());
}
This class allows for construction of iterable ranges of input values.
This class enables iteration over subranges of input values, where each subrange contains values orig...
Definition: subrangeView.h:28

Definition at line 28 of file subrangeView.h.


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