11 #ifndef __GT_RefineList__
12 #define __GT_RefineList__
29 int entries()
const {
return myList.entries(); }
36 {
return prim->
refine(myRefiner, parms); }
45 : myOwner(NULL), myCurr(0) {}
52 return myOwner->getPrimitive(myCurr);
61 bool atEnd()
const {
return myCurr >= myOwner->entries(); }
67 myOwner = src.myOwner;
88 ~refiner()
override {}
90 { myOwner.myList.append(p); }
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
int entries() const
Return the number of primitives in the list.
const iterator & operator=(const iterator &src)
bool refine(GT_Primitive *prim, const GT_RefineParms *parms)
Refine a primitive, adding primitives to the list.
The base class for all GT primitive types.
Processes primitives generated by refinement process.
iterator(const iterator &src)
const GT_PrimitiveHandle getPrimitive() const
const GT_PrimitiveHandle & getPrimitive(int i) const
Return a given primitive from the list.