MolSim
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
StrategyFactory Class Reference

Factory class for choosing the appropriate functions based on the Simulation. More...

#include <StrategyFactory.h>

Public Types

using FFunc = void(*)(ParticleContainer &, double, CellContainer *)
 Typedef for force-calculating functions.
 

Static Public Member Functions

static std::tuple< TimeIntegrationFuncs, FFuncgetSimulationFunctions (Arguments &args)
 Return a 2-tuple of the physics functions corresponding to the chosen simulation.
 

Detailed Description

Factory class for choosing the appropriate functions based on the Simulation.

Member Typedef Documentation

◆ FFunc

using StrategyFactory::FFunc = void (*)(ParticleContainer &, double, CellContainer *)

Typedef for force-calculating functions.

Member Function Documentation

◆ getSimulationFunctions()

static std::tuple< TimeIntegrationFuncs, FFunc > StrategyFactory::getSimulationFunctions ( Arguments args)
static

Return a 2-tuple of the physics functions corresponding to the chosen simulation.

Parameters
argsThe Arguments struct containing the simulation type and linked cells boolean.
Returns
A 2-tuple of the physics functions corresponding to the chosen simulation.

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