CubbyFlow::FaceCenteredGrid2::Builder Class Referencefinal

Front-end to create FaceCenteredGrid2 objects step by step. More...

#include <Core/Grid/FaceCenteredGrid2.h>

Inheritance diagram for CubbyFlow::FaceCenteredGrid2::Builder:
CubbyFlow::VectorGridBuilder2

Public Member Functions

BuilderWithResolution (const Size2 &resolution)
 Returns builder with resolution. More...
 
BuilderWithResolution (size_t resolutionX, size_t resolutionY)
 Returns builder with resolution. More...
 
BuilderWithGridSpacing (const Vector2D &gridSpacing)
 Returns builder with grid spacing. More...
 
BuilderWithGridSpacing (double gridSpacingX, double gridSpacingY)
 Returns builder with grid spacing. More...
 
BuilderWithOrigin (const Vector2D &gridOrigin)
 Returns builder with grid origin. More...
 
BuilderWithOrigin (double gridOriginX, double gridOriginY)
 Returns builder with grid origin. More...
 
BuilderWithInitialValue (const Vector2D &initialVal)
 Returns builder with initial value. More...
 
BuilderWithInitialValue (double initialValX, double initialValY)
 Returns builder with initial value. More...
 
FaceCenteredGrid2 Build () const
 Builds FaceCenteredGrid2 instance. More...
 
FaceCenteredGrid2Ptr MakeShared () const
 Builds shared pointer of FaceCenteredGrid2 instance. More...
 
VectorGrid2Ptr Build (const Size2 &resolution, const Vector2D &gridSpacing, const Vector2D &gridOrigin, const Vector2D &initialVal) const override
 Builds shared pointer of FaceCenteredGrid2 instance. More...
 
- Public Member Functions inherited from CubbyFlow::VectorGridBuilder2
 VectorGridBuilder2 ()
 Creates a builder. More...
 
virtual ~VectorGridBuilder2 ()
 Default destructor. More...
 

Detailed Description

Front-end to create FaceCenteredGrid2 objects step by step.

Member Function Documentation

◆ Build() [1/2]

FaceCenteredGrid2 CubbyFlow::FaceCenteredGrid2::Builder::Build ( ) const

Builds FaceCenteredGrid2 instance.

◆ Build() [2/2]

VectorGrid2Ptr CubbyFlow::FaceCenteredGrid2::Builder::Build ( const Size2 resolution,
const Vector2D gridSpacing,
const Vector2D gridOrigin,
const Vector2D initialVal 
) const
overridevirtual

Builds shared pointer of FaceCenteredGrid2 instance.

This is an overriding function that implements VectorGridBuilder2.

Implements CubbyFlow::VectorGridBuilder2.

◆ MakeShared()

FaceCenteredGrid2Ptr CubbyFlow::FaceCenteredGrid2::Builder::MakeShared ( ) const

Builds shared pointer of FaceCenteredGrid2 instance.

◆ WithGridSpacing() [1/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithGridSpacing ( const Vector2D gridSpacing)

Returns builder with grid spacing.

◆ WithGridSpacing() [2/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithGridSpacing ( double  gridSpacingX,
double  gridSpacingY 
)

Returns builder with grid spacing.

◆ WithInitialValue() [1/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithInitialValue ( const Vector2D initialVal)

Returns builder with initial value.

◆ WithInitialValue() [2/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithInitialValue ( double  initialValX,
double  initialValY 
)

Returns builder with initial value.

◆ WithOrigin() [1/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithOrigin ( const Vector2D gridOrigin)

Returns builder with grid origin.

◆ WithOrigin() [2/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithOrigin ( double  gridOriginX,
double  gridOriginY 
)

Returns builder with grid origin.

◆ WithResolution() [1/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithResolution ( const Size2 resolution)

Returns builder with resolution.

◆ WithResolution() [2/2]

Builder& CubbyFlow::FaceCenteredGrid2::Builder::WithResolution ( size_t  resolutionX,
size_t  resolutionY 
)

Returns builder with resolution.


The documentation for this class was generated from the following file: