Abstract base class for N-D scalar field. More...
#include <Core/Field/ScalarField.hpp>
Public Member Functions | |
ScalarField ()=default | |
Default constructor. More... | |
~ScalarField () override=default | |
Default destructor. More... | |
ScalarField (const ScalarField &)=default | |
Default copy constructor. More... | |
ScalarField (ScalarField &&) noexcept=default | |
Default move constructor. More... | |
ScalarField & | operator= (const ScalarField &)=default |
Default copy assignment operator. More... | |
ScalarField & | operator= (ScalarField &&) noexcept=default |
Default move assignment operator. More... | |
virtual double | Sample (const Vector< double, N > &x) const =0 |
Returns sampled value at given position x . More... | |
virtual Vector< double, N > | Gradient (const Vector< double, N > &x) const |
Returns gradient vector at given position x . More... | |
virtual double | Laplacian (const Vector< double, N > &x) const |
Returns Laplacian at given position x . More... | |
virtual std::function< double(const Vector< double, N > &)> | Sampler () const |
Returns sampler function object. More... | |
Public Member Functions inherited from CubbyFlow::Field< N > | |
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... | |
Detailed Description
template<size_t N>
class CubbyFlow::ScalarField< N >
Abstract base class for N-D scalar field.
Constructor & Destructor Documentation
◆ ScalarField() [1/3]
|
default |
Default constructor.
◆ ~ScalarField()
|
overridedefault |
Default destructor.
◆ ScalarField() [2/3]
|
default |
Default copy constructor.
◆ ScalarField() [3/3]
|
defaultnoexcept |
Default move constructor.
Member Function Documentation
◆ Gradient()
|
virtual |
Returns gradient vector at given position x
.
Reimplemented in CubbyFlow::ScalarGrid< N >, and CubbyFlow::CustomScalarField< N >.
◆ Laplacian()
|
virtual |
Returns Laplacian at given position x
.
Reimplemented in CubbyFlow::ScalarGrid< N >, and CubbyFlow::CustomScalarField< N >.
◆ operator=() [1/2]
|
default |
Default copy assignment operator.
◆ operator=() [2/2]
|
defaultnoexcept |
Default move assignment operator.
◆ Sample()
|
pure virtual |
Returns sampled value at given position x
.
Implemented in CubbyFlow::ScalarGrid< N >, CubbyFlow::CustomScalarField< N >, and CubbyFlow::ConstantScalarField< N >.
◆ Sampler()
|
virtual |
Returns sampler function object.
Reimplemented in CubbyFlow::ScalarGrid< N >, CubbyFlow::CustomScalarField< N >, and CubbyFlow::ConstantScalarField< N >.
The documentation for this class was generated from the following file:
- Core/Field/ScalarField.hpp