OGS
IntegrationMethodRegistry.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <typeindex>
13 
15 
16 namespace NumLib
17 {
21 {
22  explicit IntegrationOrder(unsigned const order_) : order{order_} {}
23 
24  unsigned order;
25 };
26 
27 namespace IntegrationMethodRegistry
28 {
32  std::type_index const mesh_element_type, IntegrationOrder const order);
33 
35 template <typename MeshElement>
37  IntegrationOrder const order)
38 {
39  return getIntegrationMethod(std::type_index(typeid(MeshElement)), order);
40 }
41 } // namespace IntegrationMethodRegistry
42 } // namespace NumLib
GenericIntegrationMethod const & getIntegrationMethod(std::type_index const mesh_element_type, IntegrationOrder const order)
IntegrationOrder(unsigned const order_)