mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Add missing constructors/assignment operators
Having a custom assignment operator means that the compiler isn't required to generate the implicit copy constructor. This makes sure they are constructed.
This commit is contained in:
parent
123f8b01aa
commit
27739660b9
@ -49,6 +49,11 @@ AssignerPartitionedDataSet::AssignerPartitionedDataSet(vtkm::Id num_partitions)
|
||||
this->set_nblocks(static_cast<int>(this->IScanPartitionCounts.back()));
|
||||
}
|
||||
|
||||
VTKM_CONT
|
||||
AssignerPartitionedDataSet::~AssignerPartitionedDataSet()
|
||||
{
|
||||
}
|
||||
|
||||
VTKM_CONT
|
||||
void AssignerPartitionedDataSet::local_gids(int my_rank, std::vector<int>& gids) const
|
||||
{
|
||||
|
@ -58,6 +58,9 @@ public:
|
||||
VTKM_CONT
|
||||
AssignerPartitionedDataSet(vtkm::Id num_partitions);
|
||||
|
||||
VTKM_CONT
|
||||
virtual ~AssignerPartitionedDataSet();
|
||||
|
||||
///@{
|
||||
/// vtkmdiy::Assigner API implementation.
|
||||
VTKM_CONT
|
||||
|
@ -27,6 +27,13 @@ namespace cont
|
||||
class VTKM_CONT_EXPORT CellSet
|
||||
{
|
||||
public:
|
||||
CellSet() = default;
|
||||
CellSet(const CellSet& src) = default;
|
||||
CellSet(CellSet&& src) noexcept = default;
|
||||
|
||||
CellSet& operator=(const CellSet& src) = default;
|
||||
CellSet& operator=(CellSet&& src) noexcept = default;
|
||||
|
||||
virtual ~CellSet();
|
||||
|
||||
virtual vtkm::Id GetNumberOfCells() const = 0;
|
||||
|
@ -124,6 +124,13 @@ public:
|
||||
// the destructor of the superclass.
|
||||
~CellSetStructured() override {}
|
||||
|
||||
CellSetStructured() = default;
|
||||
CellSetStructured(const CellSetStructured& src) = default;
|
||||
CellSetStructured(CellSetStructured&& src) noexcept = default;
|
||||
|
||||
CellSetStructured& operator=(const CellSetStructured& src) = default;
|
||||
CellSetStructured& operator=(CellSetStructured&& src) noexcept = default;
|
||||
|
||||
private:
|
||||
InternalsType Structure;
|
||||
};
|
||||
|
@ -204,6 +204,9 @@ public:
|
||||
|
||||
~ColorTable();
|
||||
|
||||
ColorTable& operator=(const ColorTable& p) = default;
|
||||
ColorTable(const ColorTable& p) = default;
|
||||
|
||||
const std::string& GetName() const;
|
||||
void SetName(const std::string& name);
|
||||
|
||||
|
@ -234,7 +234,10 @@ private:
|
||||
, Association(assoc)
|
||||
{
|
||||
}
|
||||
|
||||
Field(const Field&) = default;
|
||||
Field& operator=(const Field&) = default;
|
||||
|
||||
bool operator<(const Field& other) const
|
||||
{
|
||||
return (this->Association == other.Association) ? (this->Name < other.Name)
|
||||
|
@ -112,6 +112,8 @@ struct Invocation
|
||||
{
|
||||
}
|
||||
|
||||
Invocation(const Invocation& src) = default;
|
||||
|
||||
/// Defines a new \c Invocation type that is the same as this type except
|
||||
/// with the \c Parameters replaced.
|
||||
///
|
||||
|
@ -292,9 +292,6 @@ public:
|
||||
metaData.InterpWeightsPortal.Set(outputPointId + triVertex, interpolant);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
void operator=(const EdgeWeightGenerate<T>&) = delete;
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user