mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
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:
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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user