From c2ba8baf7c808b235b2efe3ecda689ac790d1ec5 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Mon, 4 Jan 2016 15:40:37 -0500 Subject: [PATCH] Allow vtkm::cont::Field to have a default constructor. When designing vtkm::filter we needed the ability to construct invalid Fields. This now allows us to do exactly that. --- vtkm/cont/Field.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vtkm/cont/Field.h b/vtkm/cont/Field.h index 52ad548c5..0249d3faa 100644 --- a/vtkm/cont/Field.h +++ b/vtkm/cont/Field.h @@ -534,6 +534,20 @@ public: VTKM_ASSERT_CONT(this->Association == ASSOC_LOGICAL_DIM); } + VTKM_CONT_EXPORT + Field() + : Name(), + Order(), + Association(), + AssocCellSetName(), + AssocLogicalDim(), + Data(), + Bounds(), + ModifiedFlag(true) + { + //Generate an empty field + } + VTKM_CONT_EXPORT const std::string &GetName() const {