AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::bump::DispatchAnyMatset Class Reference

Dispatches any type of data as any type of matset. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/bump/MergeMeshes.hpp>

Public Member Functions

template<typename FuncType >
void execute (conduit::Node &n_material_ids, conduit::Node &n_sizes, conduit::Node &n_offsets, conduit::Node &n_indices, conduit::Node &n_volume_fractions, FuncType &&func)
 Takes input matset data as Conduit nodes whose data can be various types and dispatches the data to array views that are passed to a lambda function that processes them. These nodes contain data for the merged material being created. More...
 
template<typename FuncType >
void dispatchMatset (conduit::Node &n_matset, FuncType &&func)
 Takes a node and turns it into a matset view and sends that view to the input function. More...
 

Detailed Description

Dispatches any type of data as any type of matset.

Member Function Documentation

◆ execute()

template<typename FuncType >
void axom::bump::DispatchAnyMatset::execute ( conduit::Node &  n_material_ids,
conduit::Node &  n_sizes,
conduit::Node &  n_offsets,
conduit::Node &  n_indices,
conduit::Node &  n_volume_fractions,
FuncType &&  func 
)
inline

Takes input matset data as Conduit nodes whose data can be various types and dispatches the data to array views that are passed to a lambda function that processes them. These nodes contain data for the merged material being created.

Template Parameters
FuncTypeA callable object/function/lambda.
Parameters
n_material_idsA node containing material ids.
n_sizesA node containing sizes.
n_offsetsA node containing offsets.
n_indicesA node containing indices.
n_volume_fractionsA node containing volume fractions.
funcThe function to invoke on the array views.

◆ dispatchMatset()

template<typename FuncType >
void axom::bump::DispatchAnyMatset::dispatchMatset ( conduit::Node &  n_matset,
FuncType &&  func 
)
inline

Takes a node and turns it into a matset view and sends that view to the input function.

Template Parameters
FuncTypeA callable object/function/lambda.
Parameters
n_matsetA node containing any kind of matset.
funcThe function to invoke on the matset view.

References axom::bump::views::dispatch_material().


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