9 #ifndef __PDG_WORKITEM_STATETRACKER_H__
10 #define __PDG_WORKITEM_STATETRACKER_H__
41 {
return myWorkItemCount; }
44 {
return stateCounter(state); }
49 stateCounter(state) += 1;
56 stateCounter(state) -= 1;
65 stateCounter(prev) -= 1;
66 stateCounter(cur) += 1;
77 array[i] = (
T)(myStateCounts[i]);
80 PDG_NodeState nodeState(
bool is_active,
bool is_generated)
const;
81 fpreal nodeProgress()
const;
85 {
return myStateCounts[(
int)state]; }
87 {
return myStateCounts[(
int)state]; }
90 exint myWorkItemCount;
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
PDG_WorkItemStateTracker()
void stateCounts(UT_Array< T > &array) const
void setSize(exint newsize)
PDG_WorkItemState
Enum of possible work item states.
int workItemCount() const
PDG_NodeState
Node state, used for UI/progress reporting.
void updateWorkItem(PDG_WorkItemState prev, PDG_WorkItemState cur)
int stateCount(PDG_WorkItemState state) const
void removeWorkItem(PDG_WorkItemState state)
void addWorkItem(PDG_WorkItemState state)