Panzer Version of the Day
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
panzer::BCFactoryComposite Struct Reference

A panzer::BCStrategyFactory that contains an internal vector of user BC strategy factories. More...

#include <Panzer_BCStrategy_Factory_Composite.hpp>

Inheritance diagram for panzer::BCFactoryComposite:
Inheritance graph
[legend]

Public Member Functions

 BCFactoryComposite (const std::vector< Teuchos::RCP< panzer::BCStrategyFactory > > &factories)
 Construct from the list of factories to try, in order.
 
Teuchos::RCP< panzer::BCStrategy_TemplateManager< panzer::Traits > > buildBCStrategy (const panzer::BC &bc, const Teuchos::RCP< panzer::GlobalData > &global_data) const
 Builds the BC strategy using the first constituent factory that recognizes the given boundary condition.
 
- Public Member Functions inherited from panzer::BCStrategyFactory
 BCStrategyFactory ()
 
virtual ~BCStrategyFactory ()
 

Private Attributes

std::vector< Teuchos::RCP< panzer::BCStrategyFactory > > m_bc_strategy_factories
 

Detailed Description

A panzer::BCStrategyFactory that contains an internal vector of user BC strategy factories.

buildBCStrategy() tries each constituent factory in order and returns the first non-null BC strategy produced; an exception is thrown if none of the factories recognize the given boundary condition's strategy identifier.

Definition at line 28 of file Panzer_BCStrategy_Factory_Composite.hpp.

Constructor & Destructor Documentation

◆ BCFactoryComposite()

panzer::BCFactoryComposite::BCFactoryComposite ( const std::vector< Teuchos::RCP< panzer::BCStrategyFactory > > &  factories)

Construct from the list of factories to try, in order.

Definition at line 16 of file Panzer_BCStrategy_Factory_Composite.cpp.

Member Function Documentation

◆ buildBCStrategy()

Teuchos::RCP< panzer::BCStrategy_TemplateManager< panzer::Traits > > panzer::BCFactoryComposite::buildBCStrategy ( const panzer::BC bc,
const Teuchos::RCP< panzer::GlobalData > &  global_data 
) const
virtual

Builds the BC strategy using the first constituent factory that recognizes the given boundary condition.

Parameters
[in]bcthe boundary condition to build a strategy for; its strategy identifier selects which constituent factory (if any) handles it.
[in]global_dataglobal data passed through to the constituent factory that builds the strategy.

Implements panzer::BCStrategyFactory.

Definition at line 23 of file Panzer_BCStrategy_Factory_Composite.cpp.

Member Data Documentation

◆ m_bc_strategy_factories

std::vector<Teuchos::RCP<panzer::BCStrategyFactory> > panzer::BCFactoryComposite::m_bc_strategy_factories
private

Definition at line 45 of file Panzer_BCStrategy_Factory_Composite.hpp.


The documentation for this struct was generated from the following files: