18 #ifndef viskores_cont_internal_ConnectivityExplicitInternals_h
19 #define viskores_cont_internal_ConnectivityExplicitInternals_h
34 template <
typename ShapesStorageTag = VISKORES_DEFAULT_STORAGE_TAG,
35 typename ConnectivityStorageTag = VISKORES_DEFAULT_STORAGE_TAG,
36 typename OffsetsStorageTag = VISKORES_DEFAULT_STORAGE_TAG>
37 struct ConnectivityExplicitInternals
43 ShapesArrayType Shapes;
44 ConnectivityArrayType Connectivity;
45 OffsetsArrayType Offsets;
50 ConnectivityExplicitInternals()
51 : ElementsValid(false)
60 return this->Shapes.GetNumberOfValues();
64 void ReleaseResourcesExecution()
66 this->Shapes.ReleaseResourcesExecution();
67 this->Connectivity.ReleaseResourcesExecution();
68 this->Offsets.ReleaseResourcesExecution();
72 void PrintSummary(std::ostream& out)
const
74 if (this->ElementsValid)
78 out <<
" Connectivity: ";
85 out <<
" Not Allocated" << std::endl;
93 #endif //viskores_cont_internal_ConnectivityExplicitInternals_h