walberla::field::internal::AddToStorage< GhostLayerField_T, BlockStorage_T, typename std::enable_if<(std::is_integral< typename GhostLayerField_T::value_type >::value||std::is_floating_point< typename GhostLayerField_T::value_type >::value) &&! std::is_same< GhostLayerField_T, FlagField< typename GhostLayerField_T::value_type > >::value >::type > Struct Template Reference

#include <AddToStorage.h>

Public Types

using Value_T = typename GhostLayerField_T::value_type
 

Static Public Member Functions

static BlockDataID add (const shared_ptr< BlockStorage_T > &blocks, const std::string &identifier, const typename GhostLayerField_T::value_type &initValue, const Layout layout, const uint_t nrOfGhostLayers, const bool alwaysInitialize, const std::function< void(GhostLayerField_T *field, IBlock *const block) > &initFunction, const Set< SUID > &requiredSelectors, const Set< SUID > &incompatibleSelectors, const std::function< Vector3< uint_t >(const shared_ptr< StructuredBlockStorage > &, IBlock *const) > calculateSize=defaultSize, const shared_ptr< field::FieldAllocator< Value_T > > alloc=nullptr)
 

Member Typedef Documentation

◆ Value_T

template<typename GhostLayerField_T , typename BlockStorage_T >
using walberla::field::internal::AddToStorage< GhostLayerField_T, BlockStorage_T, typename std::enable_if<(std::is_integral< typename GhostLayerField_T::value_type >::value||std::is_floating_point< typename GhostLayerField_T::value_type >::value) &&! std::is_same< GhostLayerField_T, FlagField< typename GhostLayerField_T::value_type > >::value >::type >::Value_T = typename GhostLayerField_T::value_type

Member Function Documentation

◆ add()

template<typename GhostLayerField_T , typename BlockStorage_T >
static BlockDataID walberla::field::internal::AddToStorage< GhostLayerField_T, BlockStorage_T, typename std::enable_if<(std::is_integral< typename GhostLayerField_T::value_type >::value||std::is_floating_point< typename GhostLayerField_T::value_type >::value) &&! std::is_same< GhostLayerField_T, FlagField< typename GhostLayerField_T::value_type > >::value >::type >::add ( const shared_ptr< BlockStorage_T > &  blocks,
const std::string &  identifier,
const typename GhostLayerField_T::value_type &  initValue,
const Layout  layout,
const uint_t  nrOfGhostLayers,
const bool  alwaysInitialize,
const std::function< void(GhostLayerField_T *field, IBlock *const block) > &  initFunction,
const Set< SUID > &  requiredSelectors,
const Set< SUID > &  incompatibleSelectors,
const std::function< Vector3< uint_t >(const shared_ptr< StructuredBlockStorage > &, IBlock *const) >  calculateSize = defaultSize,
const shared_ptr< field::FieldAllocator< Value_T > >  alloc = nullptr 
)
inlinestatic

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