22 #ifndef vtkMaterialInterfacePieceLoading_h 23 #define vtkMaterialInterfacePieceLoading_h 47 this->Data[LOADING] = loading;
55 buf[ID] = this->Data[ID];
56 buf[LOADING] = this->Data[LOADING];
65 this->Data[ID] = buf[ID];
66 this->Data[LOADING] = buf[LOADING];
81 assert(
"Update would make loading negative." && (this->Data[LOADING] + update) >= 0);
82 return this->Data[LOADING] += update;
91 return this->Data[ID] < other.Data[ID];
95 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.
void Initialize(int id, vtkIdType loading)
VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT void PrintPieceLoadingHistogram(std::vector< std::vector< vtkIdType > > &pla)
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)