CubbyFlow::CustomVectorField< N >::Builder Class Referencefinal

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

#include <Core/Field/CustomVectorField.hpp>

Public Member Functions

BuilderWithFunction (const std::function< Vector< double, N >(const Vector< double, N > &)> &func)
 Returns builder with field function. More...
 
BuilderWithDivergenceFunction (const std::function< double(const Vector< double, N > &)> &func)
 Returns builder with divergence function. More...
 
BuilderWithCurlFunction (const std::function< typename GetCurl< N >::Type(const Vector< double, N > &)> &func)
 Returns builder with curl function. More...
 
BuilderWithDerivativeResolution (double resolution)
 Returns builder with derivative resolution. More...
 
CustomVectorField Build () const
 Builds CustomVectorField. More...
 
std::shared_ptr< CustomVectorFieldMakeShared () const
 Builds shared pointer of CustomVectorField instance. More...
 

Detailed Description

template<size_t N>
class CubbyFlow::CustomVectorField< N >::Builder

Front-end to create CustomVectorField objects step by step.

Member Function Documentation

◆ Build()

template<size_t N>
CustomVectorField CubbyFlow::CustomVectorField< N >::Builder::Build ( ) const

◆ MakeShared()

template<size_t N>
std::shared_ptr<CustomVectorField> CubbyFlow::CustomVectorField< N >::Builder::MakeShared ( ) const

Builds shared pointer of CustomVectorField instance.

◆ WithCurlFunction()

template<size_t N>
Builder& CubbyFlow::CustomVectorField< N >::Builder::WithCurlFunction ( const std::function< typename GetCurl< N >::Type(const Vector< double, N > &)> &  func)

Returns builder with curl function.

◆ WithDerivativeResolution()

template<size_t N>
Builder& CubbyFlow::CustomVectorField< N >::Builder::WithDerivativeResolution ( double  resolution)

Returns builder with derivative resolution.

◆ WithDivergenceFunction()

template<size_t N>
Builder& CubbyFlow::CustomVectorField< N >::Builder::WithDivergenceFunction ( const std::function< double(const Vector< double, N > &)> &  func)

Returns builder with divergence function.

◆ WithFunction()

template<size_t N>
Builder& CubbyFlow::CustomVectorField< N >::Builder::WithFunction ( const std::function< Vector< double, N >(const Vector< double, N > &)> &  func)

Returns builder with field function.


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