52 #ifndef vtk_m_worklet_contourtree_distributed_hierarchical_augmenter_hierarchical_augmenter_in_out_data_h
53 #define vtk_m_worklet_contourtree_distributed_hierarchical_augmenter_hierarchical_augmenter_in_out_data_h
65 namespace contourtree_distributed
67 namespace hierarchical_augmenter
72 template <
typename FieldType>
110 std::string
DebugPrint(std::string message,
const char* fileName,
long lineNum);
114 template <
typename FieldType>
117 this->ReleaseResources();
121 template <
typename FieldType>
124 this->GlobalRegularIds.ReleaseResources();
125 this->DataValues.ReleaseResources();
126 this->SupernodeIds.ReleaseResources();
127 this->Superparents.ReleaseResources();
128 this->SuperparentRounds.ReleaseResources();
129 this->WhichRounds.ReleaseResources();
132 template <
typename FieldType>
134 const char* fileName,
138 std::stringstream resultStream;
139 resultStream << std::endl;
140 resultStream <<
"----------------------------------------" << std::endl;
141 resultStream << std::setw(30) << std::left << fileName <<
":" << std::right << std::setw(4)
142 << lineNum << std::endl;
143 resultStream << message << std::endl;
144 resultStream <<
"----------------------------------------" << std::endl;
146 "Global Regular Ids", this->GlobalRegularIds, -1, resultStream);
148 "Data Values", this->DataValues, -1, resultStream);
150 "Supernode Ids", this->SupernodeIds, -1, resultStream);
152 "Superparents", this->Superparents, -1, resultStream);
154 "Superparent Rounds", this->SuperparentRounds, -1, resultStream);
156 "Which Rounds", this->WhichRounds, -1, resultStream);
157 return resultStream.str();
169 template <
typename FieldType>
170 struct Serialization<
vtkm::worklet::contourtree_distributed::hierarchical_augmenter::
171 HierarchicalAugmenterInOutData<FieldType>>
173 static void save(vtkmdiy::BinaryBuffer& bb,
175 HierarchicalAugmenterInOutData<FieldType>& ha)
177 vtkmdiy::save(bb, ha.GlobalRegularIds);
178 vtkmdiy::save(bb, ha.DataValues);
179 vtkmdiy::save(bb, ha.SupernodeIds);
180 vtkmdiy::save(bb, ha.Superparents);
181 vtkmdiy::save(bb, ha.SuperparentRounds);
182 vtkmdiy::save(bb, ha.WhichRounds);
185 static void load(vtkmdiy::BinaryBuffer& bb,
187 HierarchicalAugmenterInOutData<FieldType>& ha)