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.
This commit is contained in:
Robert Maynard 2016-01-04 15:40:37 -05:00
parent b93658b403
commit c2ba8baf7c

@ -534,6 +534,20 @@ public:
VTKM_ASSERT_CONT(this->Association == ASSOC_LOGICAL_DIM); 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 VTKM_CONT_EXPORT
const std::string &GetName() const const std::string &GetName() const
{ {