Panzer
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
disc-fe
src
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
19
namespace
panzer {
20
21
class
ClosureModelFactoryComposite_TemplateBuilder
{
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*>
30
(
new
panzer::ClosureModelFactoryComposite<EvalT>
(
m_factories
)) );
31
}
32
33
void
addFactory
(
const
Teuchos::RCP
<
panzer::ClosureModelFactory_TemplateManager<panzer::Traits>
>& factory)
34
{
35
m_factories
.push_back(factory);
36
}
37
38
};
39
40
}
41
42
#endif
panzer::ClosureModelFactoryComposite_TemplateBuilder::m_factories
std::vector< Teuchos::RCP< panzer::ClosureModelFactory_TemplateManager< panzer::Traits > > > m_factories
Definition:
Panzer_ClosureModel_Factory_Composite_TemplateBuilder.hpp:23
panzer::ClosureModelFactory_TemplateManager
Definition:
Panzer_ClosureModel_Factory_TemplateManager.hpp:26
Teuchos::rcp
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
panzer::ClosureModelFactoryComposite
Definition:
Panzer_ClosureModel_Factory_Composite_decl.hpp:20
panzer::ClosureModelFactoryComposite_TemplateBuilder
Definition:
Panzer_ClosureModel_Factory_Composite_TemplateBuilder.hpp:21
panzer::ClosureModelFactoryComposite_TemplateBuilder::build
Teuchos::RCP< panzer::ClosureModelFactoryBase > build() const
Definition:
Panzer_ClosureModel_Factory_Composite_TemplateBuilder.hpp:28
Teuchos::RCP
panzer::ClosureModelFactoryComposite_TemplateBuilder::addFactory
void addFactory(const Teuchos::RCP< panzer::ClosureModelFactory_TemplateManager< panzer::Traits > > &factory)
Definition:
Panzer_ClosureModel_Factory_Composite_TemplateBuilder.hpp:33
Teuchos_RCP.hpp
Generated on Thu Nov 21 2024 09:17:08 for Panzer by
1.8.5