Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ClosureModel_Factory_Composite_TemplateBuilder.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Panzer: A partial differential equation assembly
4// engine for strongly coupled complex multiphysics systems
5//
6// Copyright 2011 NTESS and the Panzer contributors.
7// SPDX-License-Identifier: BSD-3-Clause
8// *****************************************************************************
9// @HEADER
10
11#ifndef PANZER_CLOSURE_MODEL_FACTORY_COMPOSITE_TEMPLATE_BUILDER_HPP
12#define PANZER_CLOSURE_MODEL_FACTORY_COMPOSITE_TEMPLATE_BUILDER_HPP
13
14#include <string>
15#include "Sacado_mpl_apply.hpp"
16#include "Teuchos_RCP.hpp"
17#include "Panzer_ClosureModel_Factory_Composite.hpp"
18
19namespace panzer {
20
22
23 std::vector<Teuchos::RCP<panzer::ClosureModelFactory_TemplateManager<panzer::Traits> > > m_factories;
24
25 public:
26
27 template <typename EvalT>
28 Teuchos::RCP<panzer::ClosureModelFactoryBase> build() const {
29 return Teuchos::rcp( static_cast<panzer::ClosureModelFactoryBase*>
31 }
32
34 {
35 m_factories.push_back(factory);
36 }
37
38 };
39
40}
41
42#endif
void addFactory(const Teuchos::RCP< panzer::ClosureModelFactory_TemplateManager< panzer::Traits > > &factory)
std::vector< Teuchos::RCP< panzer::ClosureModelFactory_TemplateManager< panzer::Traits > > > m_factories