|
| | CollocatedVectorGrid () |
| | Constructs an empty grid. More...
|
| |
| | ~CollocatedVectorGrid () override=default |
| | Default virtual destructor. More...
|
| |
| | CollocatedVectorGrid (const CollocatedVectorGrid &other)=default |
| | Default copy constructor. More...
|
| |
| | CollocatedVectorGrid (CollocatedVectorGrid &&other) noexcept=default |
| | Default move constructor. More...
|
| |
| CollocatedVectorGrid & | operator= (const CollocatedVectorGrid &other)=default |
| | Default copy assignment operator. More...
|
| |
| CollocatedVectorGrid & | operator= (CollocatedVectorGrid &&other) noexcept=default |
| | Default move assignment operator. More...
|
| |
| virtual Vector< size_t, N > | DataSize () const =0 |
| | Returns the actual data point size. More...
|
| |
| virtual Vector< double, N > | DataOrigin () const =0 |
| | Returns data position for the grid point at (0, 0, ...). More...
|
| |
| const Vector< double, N > & | operator() (const Vector< size_t, N > &idx) const |
| | Returns the grid data at given data point. More...
|
| |
| Vector< double, N > & | operator() (const Vector< size_t, N > &idx) |
| | Returns the grid data at given data point. More...
|
| |
| template<typename... Indices> |
| const Vector< double, N > & | operator() (size_t i, Indices... indices) const |
| | Returns the grid data at given data point. More...
|
| |
| template<typename... Indices> |
| Vector< double, N > & | operator() (size_t i, Indices... indices) |
| | Returns the grid data at given data point. More...
|
| |
| double | DivergenceAtDataPoint (const Vector< size_t, N > &idx) const |
| | Returns divergence at data point location. More...
|
| |
| template<typename... Indices> |
| double | DivergenceAtDataPoint (size_t i, Indices... indices) const |
| | Returns divergence at data point location. More...
|
| |
| GetCurl< N >::Type | CurlAtDataPoint (const Vector< size_t, N > &idx) const |
| | Returns curl at data point location. More...
|
| |
| template<typename... Indices> |
| GetCurl< N >::Type | CurlAtDataPoint (size_t i, Indices... indices) const |
| | Returns curl at data point location. More...
|
| |
| VectorDataView | DataView () |
| | Returns the read-write data array view. More...
|
| |
| ConstVectorDataView | DataView () const |
| | Returns the read-only data array view. More...
|
| |
| GridDataPositionFunc< N > | DataPosition () const |
| | Returns the function that maps data point to its position. More...
|
| |
| void | ForEachDataPointIndex (const std::function< void(const Vector< size_t, N > &)> &func) const |
| | Invokes the given function func for each data point. More...
|
| |
| template<size_t M = N> |
| std::enable_if_t< M==2, void > | ForEachDataPointIndex (const std::function< void(size_t, size_t)> &func) const |
| |
| template<size_t M = N> |
| std::enable_if_t< M==3, void > | ForEachDataPointIndex (const std::function< void(size_t, size_t, size_t)> &func) const |
| |
| void | ParallelForEachDataPointIndex (const std::function< void(const Vector< size_t, N > &)> &func) const |
| | Invokes the given function func for each data point in parallel. More...
|
| |
| template<size_t M = N> |
| std::enable_if_t< M==2, void > | ParallelForEachDataPointIndex (const std::function< void(size_t, size_t)> &func) const |
| |
| template<size_t M = N> |
| std::enable_if_t< M==3, void > | ParallelForEachDataPointIndex (const std::function< void(size_t, size_t, size_t)> &func) const |
| |
| Vector< double, N > | Sample (const Vector< double, N > &x) const override |
| | Returns sampled value at given position x. More...
|
| |
| double | Divergence (const Vector< double, N > &x) const override |
| | Returns divergence at given position x. More...
|
| |
| GetCurl< N >::Type | Curl (const Vector< double, N > &x) const override |
| | Returns curl at given position x. More...
|
| |
| std::function< Vector< double, N >const Vector< double, N > &)> | Sampler () const override |
| | Returns the sampler function. More...
|
| |
| | VectorGrid ()=default |
| | Constructs an empty grid. More...
|
| |
| | ~VectorGrid () override=default |
| | Default virtual destructor. More...
|
| |
| | VectorGrid (const VectorGrid &other) |
| | Copy constructor. More...
|
| |
| | VectorGrid (VectorGrid &&other) noexcept |
| | Move constructor. More...
|
| |
| VectorGrid & | operator= (const VectorGrid &other) |
| | Copy assignment operator. More...
|
| |
| VectorGrid & | operator= (VectorGrid &&other) noexcept |
| | Move assignment operator. More...
|
| |
| void | Clear () |
| | Clears the contents of the grid. More...
|
| |
| 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. More...
|
| |
| void | Resize (const Vector< double, N > &gridSpacing, const Vector< double, N > &origin) |
| | Resizes the grid using given parameters. More...
|
| |
| virtual void | Fill (const Vector< double, N > &value, ExecutionPolicy policy=ExecutionPolicy::Parallel)=0 |
| | Fills the grid with given value. More...
|
| |
| virtual void | Fill (const std::function< Vector< double, N >(const Vector< double, N > &)> &func, ExecutionPolicy policy=ExecutionPolicy::Parallel)=0 |
| | Fills the grid with given position-to-value mapping function. More...
|
| |
| virtual std::shared_ptr< VectorGrid< N > > | Clone () const =0 |
| | Returns the copy of the grid instance. More...
|
| |
| void | Serialize (std::vector< uint8_t > *buffer) const override |
| | Serializes the grid instance to the output buffer. More...
|
| |
| void | Deserialize (const std::vector< uint8_t > &buffer) override |
| | Deserializes the input buffer to the grid instance. More...
|
| |
| | VectorField ()=default |
| | Default constructor. More...
|
| |
| | ~VectorField () override=default |
| | Default destructor. More...
|
| |
| | VectorField (const VectorField &)=default |
| | Default copy constructor. More...
|
| |
| | VectorField (VectorField &&) noexcept=default |
| | Default move constructor. More...
|
| |
| VectorField & | operator= (const VectorField &)=default |
| | Default copy assignment operator. More...
|
| |
| VectorField & | operator= (VectorField &&) noexcept=default |
| | Default move assignment operator. More...
|
| |
| | Field ()=default |
| | Default constructor. More...
|
| |
| virtual | ~Field ()=default |
| | Default virtual destructor. More...
|
| |
| | Field (const Field &)=default |
| | Default copy constructor. More...
|
| |
| | Field (Field &&) noexcept=default |
| | Default move constructor. More...
|
| |
| Field & | operator= (const Field &)=default |
| | Default copy assignment operator. More...
|
| |
| Field & | operator= (Field &&) noexcept=default |
| | Default move assignment operator. More...
|
| |
| | Grid ()=default |
| | Constructs an empty grid. More...
|
| |
| | ~Grid () override=default |
| | Default virtual destructor. More...
|
| |
| | Grid (const Grid &other) |
| | Copy constructor. More...
|
| |
| | Grid (Grid &&other) noexcept |
| | Move constructor. More...
|
| |
| Grid & | operator= (const Grid &other) |
| | Copy assignment operator. More...
|
| |
| Grid & | operator= (Grid &&other) noexcept |
| | Move assignment operator. More...
|
| |
| virtual std::string | TypeName () const =0 |
| | Returns the type name of derived grid. More...
|
| |
| const Vector< size_t, N > & | Resolution () const |
| | Returns the grid resolution. More...
|
| |
| const Vector< double, N > & | Origin () const |
| | Returns the grid origin. More...
|
| |
| const Vector< double, N > & | GridSpacing () const |
| | Returns the grid spacing. More...
|
| |
| const BoundingBox< double, N > & | GetBoundingBox () const |
| | Returns the bounding box of the grid. More...
|
| |
| GridDataPositionFunc< N > | CellCenterPosition () const |
| | Returns the function that maps grid index to the cell-center position. More...
|
| |
| void | ForEachCellIndex (const std::function< void(const Vector< size_t, N > &)> &func) const |
| | Invokes the given function func for each grid cell. More...
|
| |
| template<size_t M = N> |
| std::enable_if_t< M==2, void > | ForEachCellIndex (const std::function< void(size_t, size_t)> &func) const |
| |
| template<size_t M = N> |
| std::enable_if_t< M==3, void > | ForEachCellIndex (const std::function< void(size_t, size_t, size_t)> &func) const |
| |
| void | ParallelForEachCellIndex (const std::function< void(const Vector< size_t, N > &)> &func) const |
| | Invokes the given function func for each grid cell in parallel. More...
|
| |
| template<size_t M = N> |
| std::enable_if_t< M==2, void > | ParallelForEachCellIndex (const std::function< void(size_t, size_t)> &func) const |
| |
| template<size_t M = N> |
| std::enable_if_t< M==3, void > | ParallelForEachCellIndex (const std::function< void(size_t, size_t, size_t)> &func) const |
| |
| bool | HasSameShape (const Grid &other) const |
| | Returns true if resolution, grid-spacing and origin are same. More...
|
| |
| virtual void | Swap (Grid *other)=0 |
| | Swaps the data with other grid. More...
|
| |
| | Serializable ()=default |
| | Default constructor. More...
|
| |
| | Serializable (const Serializable &)=default |
| | Default copy constructor. More...
|
| |
| | Serializable (Serializable &&) noexcept=default |
| | Default move constructor. More...
|
| |
| virtual | ~Serializable ()=default |
| | Default virtual destructor. More...
|
| |
| Serializable & | operator= (const Serializable &)=default |
| | Default copy assignment operator. More...
|
| |
| Serializable & | operator= (Serializable &&) noexcept=default |
| | Default move assignment operator. More...
|
| |