CubbyFlow::ConstantScalarField< N > Class Template Referencefinal
N-D constant scalar field. More...
#include <Core/Field/ConstantScalarField.hpp>
Inheritance diagram for CubbyFlow::ConstantScalarField< N >:
Classes | |
class | Builder |
Front-end to create ConstantScalarField objects step by step. More... | |
Public Member Functions | |
ConstantScalarField (double value) | |
Constructs a constant scalar field with given value . More... | |
double | Sample (const Vector< double, N > &x) const override |
Returns the sampled value at given position x . More... | |
std::function< double(const Vector< double, N > &)> | Sampler () const override |
Returns the sampler function. More... | |
Public Member Functions inherited from CubbyFlow::ScalarField< N > | |
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 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... | |
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... | |
Static Public Member Functions | |
static Builder | GetBuilder () |
Returns builder for ConstantScalarField. More... | |
Detailed Description
template<size_t N>
class CubbyFlow::ConstantScalarField< N >
N-D constant scalar field.
Constructor & Destructor Documentation
◆ ConstantScalarField()
template<size_t N>
|
explicit |
Constructs a constant scalar field with given value
.
Member Function Documentation
◆ GetBuilder()
template<size_t N>
|
static |
Returns builder for ConstantScalarField.
◆ Sample()
template<size_t N>
|
overridevirtual |
Returns the sampled value at given position x
.
Implements CubbyFlow::ScalarField< N >.
◆ Sampler()
template<size_t N>
|
overridevirtual |
Returns the sampler function.
Reimplemented from CubbyFlow::ScalarField< N >.
The documentation for this class was generated from the following file:
- Core/Field/ConstantScalarField.hpp