![]() |
GemaCoreLib
The GeMA Core library
|
Binding class used to store the set of known values associated with the points used in the interpolation. Might store one ore more values per point. More...
#include <gmInterpolatorInputBindings.h>
Public Member Functions | |
virtual int | numSrcs ()=0 |
Returns the number o data srcs (accessors) stored by this object. | |
virtual int | size () const =0 |
Returns the number of values stored by this object for each data src. | |
virtual int | valueSize (int srcIndex) const =0 |
Returns the value dimension for the given data src. | |
virtual void | reset ()=0 |
Resets the iterator. The following call to value() will return the first value in the set. This function MUST be called prior to the first call to value(). | |
virtual bool | next ()=0 |
Advances the iterator to the next value. Returns false if we already visited the last value and there are no more values left. | |
virtual const double * | value (int srcIndex)=0 |
Returns a vector with the value pointed to by the current iterator position, for the given data source index (between 0 and numSrcs() - 1). | |
virtual void | coordinate (GmCRVector &coord)=0 |
Returns the coordinate of the current iterator position. Does nothing if the input src has no coordinate bindings at all. Ther returned coordinate is valid ONLY WHILE the iterator continue to point to the current position. It will be INVALIDATED after the call to next(). | |
Binding class used to store the set of known values associated with the points used in the interpolation. Might store one ore more values per point.
Values are returned following a simple forward iterator, much like the one returned by GmInterpolatorCoordinateSetBinding.
IMPORTANT: Keep in mind that the implemented iterator mechanism for this class operates "inplace", so its NOT possible to have more than one reference to the same binding object with both of them iterating over the same object simultaniously.