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