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

#include <Panzer_CommonArrayFactories.hpp>

Public Member Functions

 MDFieldArrayFactory ()
 
 MDFieldArrayFactory (const std::string &prefix, bool allocArray=false)
 
 MDFieldArrayFactory (const std::string &prefix, const std::vector< PHX::index_size_type > &ddims, bool allocArray=false)
 
template<typename Scalar , typename T0 >
PHX::MDField< Scalar > buildArray (const std::string &str, int d0) const
 
template<typename Scalar , typename T0 , typename T1 >
PHX::MDField< Scalar > buildArray (const std::string &str, int d0, int d1) const
 
template<typename Scalar , typename T0 , typename T1 , typename T2 >
PHX::MDField< Scalar > buildArray (const std::string &str, int d0, int d1, int d2) const
 
template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 >
PHX::MDField< Scalar > buildArray (const std::string &str, int d0, int d1, int d2, int d3) const
 
template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 >
PHX::MDField< Scalar > buildArray (const std::string &str, int d0, int d1, int d2, int d3, int d4) const
 
template<typename Scalar , typename T0 >
PHX::MDField< Scalar, T0 > buildStaticArray (const std::string &str, int d0) const
 
template<typename Scalar , typename T0 , typename T1 >
PHX::MDField< Scalar, T0, T1 > buildStaticArray (const std::string &str, int d0, int d1) const
 
template<typename Scalar , typename T0 , typename T1 , typename T2 >
PHX::MDField< Scalar, T0, T1, T2 > buildStaticArray (const std::string &str, int d0, int d1, int d2) const
 
template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 >
PHX::MDField< Scalar, T0, T1, T2, T3 > buildStaticArray (const std::string &str, int d0, int d1, int d2, int d3) const
 
template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 >
PHX::MDField< Scalar, T0, T1, T2, T3, T4 > buildStaticArray (const std::string &str, int d0, int d1, int d2, int d3, int d4) const
 

Private Attributes

std::string prefix_
 
bool allocArray_
 
std::vector< PHX::index_size_type > ddims_
 

Detailed Description

Implementation for MDField array factory. This is intended to be used only with the BasisValues and IntegrationValues objects.

Definition at line 86 of file Panzer_CommonArrayFactories.hpp.

Constructor & Destructor Documentation

◆ MDFieldArrayFactory() [1/3]

panzer::MDFieldArrayFactory::MDFieldArrayFactory ( )
inline

Build fields with no prefix, will simply use the string passed into buildArray to name the fields.

Definition at line 91 of file Panzer_CommonArrayFactories.hpp.

◆ MDFieldArrayFactory() [2/3]

panzer::MDFieldArrayFactory::MDFieldArrayFactory ( const std::string &  prefix,
bool  allocArray = false 
)
inline

Build fields with a prefix, will use the string passed into buildArray prefixed with the argument to this constructor to name the fields.

Definition at line 98 of file Panzer_CommonArrayFactories.hpp.

◆ MDFieldArrayFactory() [3/3]

panzer::MDFieldArrayFactory::MDFieldArrayFactory ( const std::string &  prefix,
const std::vector< PHX::index_size_type > &  ddims,
bool  allocArray = false 
)
inline

Build fields with a prefix, will use the string passed into buildArray prefixed with the argument to this constructor to name the fields.

Definition at line 105 of file Panzer_CommonArrayFactories.hpp.

Member Function Documentation

◆ buildArray() [1/5]

template<typename Scalar , typename T0 >
PHX::MDField< Scalar > panzer::MDFieldArrayFactory::buildArray ( const std::string &  str,
int  d0 
) const

Definition at line 95 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildArray() [2/5]

template<typename Scalar , typename T0 , typename T1 >
PHX::MDField< Scalar > panzer::MDFieldArrayFactory::buildArray ( const std::string &  str,
int  d0,
int  d1 
) const

Definition at line 109 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildArray() [3/5]

template<typename Scalar , typename T0 , typename T1 , typename T2 >
PHX::MDField< Scalar > panzer::MDFieldArrayFactory::buildArray ( const std::string &  str,
int  d0,
int  d1,
int  d2 
) const

Definition at line 123 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildArray() [4/5]

template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 >
PHX::MDField< Scalar > panzer::MDFieldArrayFactory::buildArray ( const std::string &  str,
int  d0,
int  d1,
int  d2,
int  d3 
) const

Definition at line 137 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildArray() [5/5]

template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 >
PHX::MDField< Scalar > panzer::MDFieldArrayFactory::buildArray ( const std::string &  str,
int  d0,
int  d1,
int  d2,
int  d3,
int  d4 
) const

Definition at line 151 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildStaticArray() [1/5]

template<typename Scalar , typename T0 >
PHX::MDField< Scalar, T0 > panzer::MDFieldArrayFactory::buildStaticArray ( const std::string &  str,
int  d0 
) const

Definition at line 166 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildStaticArray() [2/5]

template<typename Scalar , typename T0 , typename T1 >
PHX::MDField< Scalar, T0, T1 > panzer::MDFieldArrayFactory::buildStaticArray ( const std::string &  str,
int  d0,
int  d1 
) const

Definition at line 180 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildStaticArray() [3/5]

template<typename Scalar , typename T0 , typename T1 , typename T2 >
PHX::MDField< Scalar, T0, T1, T2 > panzer::MDFieldArrayFactory::buildStaticArray ( const std::string &  str,
int  d0,
int  d1,
int  d2 
) const

Definition at line 194 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildStaticArray() [4/5]

template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 >
PHX::MDField< Scalar, T0, T1, T2, T3 > panzer::MDFieldArrayFactory::buildStaticArray ( const std::string &  str,
int  d0,
int  d1,
int  d2,
int  d3 
) const

Definition at line 208 of file Panzer_CommonArrayFactories_impl.hpp.

◆ buildStaticArray() [5/5]

template<typename Scalar , typename T0 , typename T1 , typename T2 , typename T3 , typename T4 >
PHX::MDField< Scalar, T0, T1, T2, T3, T4 > panzer::MDFieldArrayFactory::buildStaticArray ( const std::string &  str,
int  d0,
int  d1,
int  d2,
int  d3,
int  d4 
) const

Definition at line 222 of file Panzer_CommonArrayFactories_impl.hpp.

Member Data Documentation

◆ prefix_

std::string panzer::MDFieldArrayFactory::prefix_
private

Definition at line 134 of file Panzer_CommonArrayFactories.hpp.

◆ allocArray_

bool panzer::MDFieldArrayFactory::allocArray_
private

Definition at line 135 of file Panzer_CommonArrayFactories.hpp.

◆ ddims_

std::vector<PHX::index_size_type> panzer::MDFieldArrayFactory::ddims_
private

Definition at line 136 of file Panzer_CommonArrayFactories.hpp.


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