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);
83 bool shell=
false)
override;
91 bool shell=
false)
override;
95 {
return myIsPartialCook; }
100 {
return myIsDynamicBatch; }
103 void setOffset(
int offset);
111 void setActivationMode(
116 void setActivationCount(
117 int activation_count);
123 int activationCount()
const;
126 void setStartIndex(
int index);
130 bool batched)
override;
134 {
return &myNotCachedDep; }
165 bool unresolve)
override;
174 bool check_dirty)
override;
190 int myActivationCount;
191 mutable int myActiveBatchIndex;
194 bool myIsPartialCook;
195 bool myIsDynamicBatch;
exint PDG_WorkItemID
Type defs for unique work item IDs.
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.
PDG_WorkItemState
Enum of possible work item states.
PDGE_Dependency * notCachedDep()
Returns the can cook dependency object for this work item.
friend class PDG_BatchWorkItem
virtual PDG_WorkItemCacheState outputCacheState() const
Returns the output file cache state of this work item.
PDGE_Dependency::State evalResolve(PDGE_Resolutions &resolutions, const PDGE_Evaluator &evaluator, PDGE_Dependency *dependency) override
virtual bool setPlatformCommands(const UT_StringHolder &linux, const UT_StringHolder &mac, const UT_StringHolder &windows, bool shell=false)
Sets a per-platform work item command.
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.
virtual bool setCommand(const UT_StringHolder &command, bool shell=false)
Sets the work item command directly.
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.