9 #ifndef __PDG_BATCHWORKITEM_H__
10 #define __PDG_BATCHWORKITEM_H__
24 bool is_static =
true,
33 bool inclusive)
const override;
37 int batchStart()
const;
40 int batchSize()
const;
44 {
return myBatchItems; }
68 void initBatchItems();
74 void setIsPartialCook(
bool is_partial);
77 void setIsDynamicBatch(
bool is_dynamic);
81 {
return myIsPartialCook; }
86 {
return myIsDynamicBatch; }
89 void setOffset(
int offset);
97 void setActivationMode(
102 void setActivationCount(
103 int activation_count);
109 int activationCount()
const;
112 void setStartIndex(
int index);
116 bool batched)
override;
120 {
return &myNotCachedDep; }
148 bool unresolve)
override;
157 bool check_dirty)
override;
173 int myActivationCount;
174 mutable int myActiveBatchIndex;
177 bool myIsPartialCook;
178 bool myIsDynamicBatch;
virtual PDG_WorkItemState checkCached(bool add_outputs)
const PDG_WorkItemArray & batchItems() const
Returns the list of sub items in the batch.
bool isPartialCook() const
Returns the partial batch flag.
void resetOwner() override
Resets the work item's dependency objects.
**But if you need a result
virtual void syncCacheId()
Syncs a work item's cache with its dependents.
PDGE_Dependency * notCachedDep()
Returns the can cook dependency object for this work item.
friend class PDG_BatchWorkItem
PDGE_Dependency::State evalResolve(PDGE_Resolutions &resolutions, const PDGE_Evaluator &evaluator, PDGE_Dependency *dependency) override
PDG_WorkItemState
Enum of possible work item states.
UT_StringHolder batchName() const
Returns the batch name; the prefix given to all sub items.
bool isDynamicBatch() const
bool setFrame(fpreal frame)
virtual void setPendingDirty(PendingDirty pending)
Sets the pending dirty flag on the work item, used for regeneration.
StatType
Enumeration of stats stored in this object.
virtual void memoryInfo(PDG_MemoryInfo &memory_info, bool inclusive) const
Returns a break down of the memory used by the work item.
virtual fpreal setTimeStat(PDG_WorkItemStats::StatType stat, bool batched)
Sets a stat to the current time.
exint PDG_WorkItemID
Type defs for unique work item IDs.
virtual void notifyCook(PDGE_Resolutions &resolutions, PDG_WorkItemState result, int batch_index, fpreal duration, bool notify_all, bool static_cook, bool unresolve)
Notifies this work item that is has cooked.
UT_StringHolder name() const
Returns the name of the work item, guaranteed to be unique.