CubbyFlow::VertexCenteredScalarGrid< N >::Builder Class Referencefinal
Front-end to create VertexCenteredScalarGrid objects step by step. More...
#include <Core/Grid/VertexCenteredScalarGrid.hpp>
Inheritance diagram for CubbyFlow::VertexCenteredScalarGrid< N >::Builder:
Public Member Functions | |
Builder & | WithResolution (const Vector< size_t, N > &resolution) |
Returns builder with resolution. More... | |
Builder & | WithGridSpacing (const Vector< double, N > &gridSpacing) |
Returns builder with grid spacing. More... | |
Builder & | WithOrigin (const Vector< double, N > &gridOrigin) |
Returns builder with grid origin. More... | |
Builder & | WithInitialValue (double initialVal) |
Returns builder with initial value. More... | |
VertexCenteredScalarGrid< N > | Build () const |
Builds VertexCenteredScalarGrid<N> instance. More... | |
std::shared_ptr< VertexCenteredScalarGrid< N > > | MakeShared () const |
Builds shared pointer of VertexCenteredScalarGrid<N> instance. More... | |
std::shared_ptr< ScalarGrid< N > > | Build (const Vector< size_t, N > &resolution, const Vector< double, N > &gridSpacing, const Vector< double, N > &gridOrigin, double initialVal) const override |
Builds shared pointer of VertexCenteredScalarGrid<N> instance. More... | |
Public Member Functions inherited from CubbyFlow::ScalarGridBuilder< N > | |
ScalarGridBuilder ()=default | |
Creates a builder. More... | |
virtual | ~ScalarGridBuilder ()=default |
Default virtual destructor. More... | |
ScalarGridBuilder (const ScalarGridBuilder &other)=delete | |
Deleted copy constructor. More... | |
ScalarGridBuilder (ScalarGridBuilder &&other) noexcept=delete | |
Deleted move constructor. More... | |
ScalarGridBuilder & | operator= (const ScalarGridBuilder &other)=delete |
Deleted copy assignment operator. More... | |
ScalarGridBuilder & | operator= (ScalarGridBuilder &&other) noexcept=delete |
Deleted move assignment operator. More... | |
Detailed Description
template<size_t N>
class CubbyFlow::VertexCenteredScalarGrid< N >::Builder
Front-end to create VertexCenteredScalarGrid objects step by step.
Member Function Documentation
◆ Build() [1/2]
template<size_t N>
VertexCenteredScalarGrid<N> CubbyFlow::VertexCenteredScalarGrid< N >::Builder::Build | ( | ) | const |
Builds VertexCenteredScalarGrid<N> instance.
◆ Build() [2/2]
template<size_t N>
|
overridevirtual |
Builds shared pointer of VertexCenteredScalarGrid<N> instance.
This is an overriding function that implements ScalarGridBuilder2.
Implements CubbyFlow::ScalarGridBuilder< N >.
◆ MakeShared()
template<size_t N>
std::shared_ptr<VertexCenteredScalarGrid<N> > CubbyFlow::VertexCenteredScalarGrid< N >::Builder::MakeShared | ( | ) | const |
Builds shared pointer of VertexCenteredScalarGrid<N> instance.
◆ WithGridSpacing()
template<size_t N>
Builder& CubbyFlow::VertexCenteredScalarGrid< N >::Builder::WithGridSpacing | ( | const Vector< double, N > & | gridSpacing | ) |
Returns builder with grid spacing.
◆ WithInitialValue()
template<size_t N>
Builder& CubbyFlow::VertexCenteredScalarGrid< N >::Builder::WithInitialValue | ( | double | initialVal | ) |
Returns builder with initial value.
◆ WithOrigin()
template<size_t N>
Builder& CubbyFlow::VertexCenteredScalarGrid< N >::Builder::WithOrigin | ( | const Vector< double, N > & | gridOrigin | ) |
Returns builder with grid origin.
◆ WithResolution()
template<size_t N>
Builder& CubbyFlow::VertexCenteredScalarGrid< N >::Builder::WithResolution | ( | const Vector< size_t, N > & | resolution | ) |
Returns builder with resolution.
The documentation for this class was generated from the following file:
- Core/Grid/VertexCenteredScalarGrid.hpp