Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
Aggregate.hpp File Reference

Classes

class  mundy::mesh::Aggregate< Components >
 An aggregator of components. More...
class  mundy::mesh::NgpAggregate< NgpComponents >

Namespaces

namespace  mundy
namespace  mundy::mesh

Functions

template<typename Tag, typename... Components>
const auto & mundy::mesh::get_component (const Aggregate< Components... > &aggregate)
 Get a component of the given aggregate (const) This simply calls the get_component method of the given aggregate and solely exists so you don't need to write "aggregate. template get_component<Tag>()" every time you want to fetch a component. Instead, you use "get_component<Tag>(aggregate)". Same concept as std::get<N>(tuple).
template<typename Tag, typename... Components>
auto & mundy::mesh::get_component (Aggregate< Components... > &aggregate)
 Get a component of the given aggregate.
template<typename Tag, typename... Components>
decltype(auto) mundy::mesh::get (const Aggregate< Components... > &aggregate, stk::mesh::Entity entity)
 Get the data tagged by the given tag from the given aggregate and entity (const).
template<typename Tag, typename... Components>
decltype(auto) mundy::mesh::get (Aggregate< Components... > &aggregate, stk::mesh::Entity entity)
 Get the data tagged by the given tag from the given aggregate and entity.
template<typename Tag, typename... Components>
constexpr bool mundy::mesh::has (const Aggregate< Components... > &)
 Check if an aggregate has a component with the given tag.
template<typename Tag, typename... Components>
decltype(auto) mundy::mesh::get (const NgpAggregate< Components... > &aggregate, stk::mesh::FastMeshIndex entity_index)
 Get the data tagged by the given tag from the given aggregate and entity index (const).
template<typename Tag, typename... Components>
decltype(auto) mundy::mesh::get (NgpAggregate< Components... > &aggregate, stk::mesh::FastMeshIndex entity_index)
 Get the data tagged by the given tag from the given aggregate and entity index.
template<typename Tag, typename... Components>
decltype(auto) mundy::mesh::get (const NgpAggregate< Components... > &aggregate, stk::mesh::Entity entity)
 Get the data tagged by the given tag from the given aggregate and entity (const).
template<typename Tag, typename... Components>
decltype(auto) mundy::mesh::get (NgpAggregate< Components... > &aggregate, stk::mesh::Entity entity)
 Get the data tagged by the given tag from the given aggregate and entity.
template<typename Tag, typename... Components>
constexpr bool mundy::mesh::has (const NgpAggregate< Components... > &)
 Check if an NGP aggregate has a component with the given tag.
template<typename... TaggedComponents>
auto mundy::mesh::get_updated_ngp_aggregate (const Aggregate< TaggedComponents... > &aggregate)
 A helper function for getting the NGP aggregate from a regular aggregate.