11 #ifndef vtkMaterialInterfaceProcessLoading_h 12 #define vtkMaterialInterfaceProcessLoading_h 41 this->Data[LOADING] = loadFactor;
49 return this->Data[LOADING] < rhs.Data[LOADING];
56 return this->Data[LOADING] <= rhs.Data[LOADING];
63 return this->Data[LOADING] > rhs.Data[LOADING];
70 return this->Data[LOADING] >= rhs.Data[LOADING];
77 return this->Data[LOADING] == rhs.Data[LOADING];
93 assert(
"Update would make loading negative." && (this->Data[LOADING] + loadFactor) >= 0);
94 return this->Data[LOADING] += loadFactor;
104 std::ostream& sout,
const std::vector<vtkMaterialInterfaceProcessLoading>& vfp);
bool operator>(const vtkMaterialInterfaceProcessLoading &rhs) const
Comparison of two objects loading.
bool operator<(const vtkMaterialInterfaceProcessLoading &rhs) const
Comparison of two objects loading.
Data type to represent a node in a multiprocess job and its current loading state.
#define VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT
vtkIdType GetLoadFactor() const
Return the load factor.
bool operator>=(const vtkMaterialInterfaceProcessLoading &rhs) const
Comparison of two objects loading.
vtkMaterialInterfaceProcessLoading()
void Initialize(int id, vtkIdType loadFactor)
Set the id and load factor.
bool operator==(const vtkMaterialInterfaceProcessLoading &rhs) const
Comparison of two objects loading.
vtkIdType GetId() const
Return the process id.
bool operator<=(const vtkMaterialInterfaceProcessLoading &rhs) const
Comparison of two objects loading.
~vtkMaterialInterfaceProcessLoading()
vtkIdType UpdateLoadFactor(vtkIdType loadFactor)
Add to the load factor.
VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT std::ostream & operator<<(std::ostream &sout, const vtkMaterialInterfaceProcessLoading &fp)