ExportOpExtra(In, Extra, ExportOp) { for p = 1 to ExportOp.nrPhases(); { ExportOp.init(p); foreach i, e in In, Extra ExportOp.doIt(In(i), Extra(e), i.x, i.y, i.z); ExportOp.done(p); } }
The requirements on the ExportExtraT template parameter expressed as class definition are:
template<class ImValT, class ExtraValT> class ExportExtraT { public: typedef HxTagTransVar TransVarianceCategory; typedef HxTagNPhase PhaseCategory; ExportExtraT(HxTagList&); int nrPhases() const; void init(int phase); void doIt(const ImValT& imV, const ExtraValT& extraV, int x, int y, int z); void done(int phase); static HxString className(); };
Example(s):