svZeroDSolver
Loading...
Searching...
No Matches
BlockFactory.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the
2// University of California, and others. SPDX-License-Identifier: BSD-3-Clause
3/**
4 * @file BlockFactory.h
5 * @brief Define the block factory functional
6 */
7#ifndef SVZERODSOLVER_MODEL_BLOCK_FACTORY_HPP_
8#define SVZERODSOLVER_MODEL_BLOCK_FACTORY_HPP_
9
10#include <functional>
11#include <vector>
12
13#include "Block.h"
14
15/**
16 * @brief General functional for the creation of different types of blocks
17 */
18using BlockFactoryFunc = std::function<Block*(int, Model*)>;
19
20#endif
model::Block source file
std::function< Block *(int, Model *)> BlockFactoryFunc
General functional for the creation of different types of blocks.
Definition BlockFactory.h:18
Base class for 0D model components.
Definition Block.h:75
Model of 0D elements.
Definition Model.h:48