9 #ifndef PDG_WORK_ITEM_OPTIONS_H
10 #define PDG_WORK_ITEM_OPTIONS_H
50 , myCloneTarget(nullptr)
52 , myParentArray(nullptr)
53 , myParentArrayOffset(0)
55 , myCloneMode(eCloneDefault)
61 , myIsNoGenerate(false)
62 , myPreserveDataType(false)
63 , myCloneOutputFiles(false)
64 , myIsServiceMode(false)
65 , myIsPartialCook(false)
66 , myIsDynamicBatch(false)
108 {
return myPriority.value_or(0); }
110 { myPriority = priority; }
112 {
return myPriority.has_value(); }
bool isPrioritySet() const
const PDG_WorkItem * myCloneTarget
bool myCloneOutputFiles
Indicates that output results should be copied when cloning.
PDG_WorkItemArray myLocalParentArray
PDG_WorkItemOptions()
Default initialization.
std::optional< T > UT_Optional
Unspecified/automatic cook type.
PDG_WorkItemCookType myCookType
Work item cook type.
int myBatchSize
Batch size, only used when Batch is true.
CloneMode myCloneMode
Clone behavior.
PDG_WorkItemCookType
Enumeration of work item cook types.
const PDG_WorkItemArray * myParentArray
GLuint const GLchar * name
int myBatchOffset
Batch offset, only used when Batch is true.
bool myPreserveDataType
Indicates that the data type should be preserved when cloning.
bool myIsNoGenerate
Indicates that this item cannot be used for downstream generation.
UT_StringHolder myTypeName
bool myBatch
Indicates that this is a batch work item.
PDG_WorkItemOptions(const UT_StringHolder &name, int index)
Simple name/index initialization.
void setPriority(int priority)
bool myInProcess
Indicates that this is an in-process work item.