Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
Panzer_BCStrategy_Factory_Defines.hpp File Reference
#include <iostream>
#include "Teuchos_RCP.hpp"
#include "Panzer_BC.hpp"
#include "Panzer_BCStrategy_TemplateManager.hpp"
Include dependency graph for Panzer_BCStrategy_Factory_Defines.hpp:

Go to the source code of this file.

Macros

#define PANZER_DECLARE_BCSTRATEGY_TEMPLATE_BUILDER(fClass, fType)
 
#define PANZER_DECLARE_BCSTRATEGY_TEMPLATE_BUILDER_EXTRA(fClass, fType, extraSteps)
 
#define PANZER_BUILD_BCSTRATEGY_OBJECTS(key, fType)
 

Macro Definition Documentation

#define PANZER_DECLARE_BCSTRATEGY_TEMPLATE_BUILDER (   fClass,
  fType 
)
Value:
\
struct fType ## _TemplateBuilder \
{ \
fType ## _TemplateBuilder( \
const panzer::BC& bc, \
const Teuchos::RCP<panzer::GlobalData>& global_data) \
: \
m_bc(bc), \
m_global_data(global_data) \
{ \
} \
\
template<typename EvalT> \
Teuchos::RCP<panzer::BCStrategyBase> build() const \
{ \
fClass<EvalT>* ptr = new fClass<EvalT>(m_bc, m_global_data); \
return Teuchos::rcp(ptr); \
} \
\
};
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
const std::vector< std::pair< int, LocalOrdinal > > &pid_and_lid const
Stores input information for a boundary condition.
Definition: Panzer_BC.hpp:81

Definition at line 49 of file Panzer_BCStrategy_Factory_Defines.hpp.

#define PANZER_DECLARE_BCSTRATEGY_TEMPLATE_BUILDER_EXTRA (   fClass,
  fType,
  extraSteps 
)
Value:
\
struct fType ## _TemplateBuilder \
{ \
fType ## _TemplateBuilder( \
const panzer::BC& bc, \
const Teuchos::RCP<panzer::GlobalData>& global_data) \
: \
m_bc(bc), \
m_global_data(global_data) \
{ \
} \
\
template<typename EvalT> \
Teuchos::RCP<panzer::BCStrategyBase> build() const \
{ \
fClass<EvalT>* ptr = new fClass<EvalT>(m_bc, m_global_data); \
{ \
extraSteps \
} \
return Teuchos::rcp(ptr); \
} \
\
};
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
const std::vector< std::pair< int, LocalOrdinal > > &pid_and_lid const
Stores input information for a boundary condition.
Definition: Panzer_BC.hpp:81

Definition at line 73 of file Panzer_BCStrategy_Factory_Defines.hpp.

#define PANZER_BUILD_BCSTRATEGY_OBJECTS (   key,
  fType 
)
Value:
if (bc.strategy() == key) \
{ \
fType ## _TemplateBuilder builder(bc, global_data); \
bcs_tm->buildObjects(builder); \
found = true; \
}

Definition at line 102 of file Panzer_BCStrategy_Factory_Defines.hpp.