11 #ifndef vtkMaterialInterfacePieceLoading_h 12 #define vtkMaterialInterfacePieceLoading_h 35 this->Data[LOADING] = loading;
43 buf[ID] = this->Data[ID];
44 buf[LOADING] = this->Data[LOADING];
53 this->Data[ID] = buf[ID];
54 this->Data[LOADING] = buf[LOADING];
69 assert(
"Update would make loading negative." && (this->Data[LOADING] + update) >= 0);
70 return this->Data[LOADING] += update;
79 return this->Data[ID] < other.Data[ID];
83 return this->Data[ID] == other.Data[ID];
vtkMaterialInterfacePieceLoading()
Data structure that describes a fragment's loading.
bool operator<(const vtkMaterialInterfacePieceLoading &other) const
Comparison are made by id.
#define VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT
vtkIdType GetId() const
Set/Get.
VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT void PrintPieceLoadingHistogram(std::vector< std::vector< vtkIdType >> &pla)
void Initialize(int id, vtkIdType loading)
VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT std::ostream & operator<<(std::ostream &sout, const vtkMaterialInterfacePieceLoading &fp)
~vtkMaterialInterfacePieceLoading()
vtkIdType UpdateLoading(vtkIdType update)
Adds to loading and returns the updated loading.
bool operator==(const vtkMaterialInterfacePieceLoading &other) const
Comparison are made by id.
vtkIdType GetLoading() const
void SetLoading(vtkIdType loading)
void Pack(vtkIdType *buf)
Place into a buffer (id, loading)
void UnPack(vtkIdType *buf)
Initialize from a buffer (id, loading)