VectorGrid.hpp
Go to the documentation of this file.
virtual void OnResize(const Vector< size_t, N > &resolution, const Vector< double, N > &gridSpacing, const Vector< double, N > &origin, const Vector< double, N > &initialValue)=0
Invoked when the resizing happens.
void Resize(const Vector< size_t, N > &resolution, const Vector< double, N > &gridSpacing=Vector< double, N >::MakeConstant(1.0), const Vector< double, N > &origin=Vector< double, N >{}, const Vector< double, N > &initialValue=Vector< double, N >{})
Resizes the grid using given parameters.
virtual void Fill(const Vector< double, N > &value, ExecutionPolicy policy=ExecutionPolicy::Parallel)=0
Fills the grid with given value.
void Serialize(std::vector< uint8_t > *buffer) const override
Serializes the grid instance to the output buffer.
Abstract base class for N-D vector grid builder.
Definition: VectorGrid.hpp:117
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition: VectorGrid.hpp:110
Abstract base class for N-D vector grid structure.
Definition: VectorGrid.hpp:22
std::shared_ptr< VectorGridBuilder2 > VectorGridBuilder2Ptr
Shared pointer for the VectorGridBuilder2 type.
Definition: VectorGrid.hpp:153
virtual std::shared_ptr< VectorGrid< N > > Clone() const =0
Returns the copy of the grid instance.
VectorGrid & operator=(const VectorGrid &other)
Copy assignment operator.
std::shared_ptr< VectorGrid3 > VectorGrid3Ptr
Shared pointer for the VectorGrid3 type.
Definition: VectorGrid.hpp:113
void Deserialize(const std::vector< uint8_t > &buffer) override
Deserializes the input buffer to the grid instance.
std::shared_ptr< VectorGridBuilder3 > VectorGridBuilder3Ptr
Shared pointer for the VectorGridBuilder3 type.
Definition: VectorGrid.hpp:156