Peano
Loading...
Searching...
No Matches
VariableShortcuts.template.h File Reference
Go to the source code of this file.
Typedefs
using
VariableShortcuts
Typedef Documentation
◆
VariableShortcuts
using
VariableShortcuts
Initial value:
{%
for
item in NAMESPACE -%}
namespace
{{ item }} {
{%- endfor %}
class
VariableShortcuts
;
{%
for
item in NAMESPACE -%}
}
{%- endfor %}
class
{{NAMESPACE | join(
"::"
)}}
::VariableShortcuts
{
public
:
static
constexpr
int
NumberOfDistinctVariables = {{VARIABLE_NAMES|length}};
static
constexpr
int
Q[NumberOfDistinctVariables + 1] = { {%
for
VARIABLE_NO in range(0, VARIABLE_NAMES|length-1) -%}
{{VARIABLE_POSITIONS[VARIABLE_NO]}},
{%- endfor %} {{VARIABLE_POSITIONS[VARIABLE_NAMES|length-1]}} };
{%
for
VARIABLE_NO in range(0, VARIABLE_NAMES|length) %}
static
constexpr
int
{{VARIABLE_NAMES[VARIABLE_NO]}} = {{VARIABLE_POSITIONS[VARIABLE_NO]}};
{% endfor %}
constexpr
int
operator [] (
const
int
index)
const
noexcept
{
return
Q[
index
]; }
constexpr
int
operator () (
const
int
index)
const
noexcept
{
return
Q[
index
]; }
} {{NAMESPACE | join(
"::"
)}}
::VariableShortcuts
VariableShortcuts
{% for item in NAMESPACE -%} namespace {{ item }} { {%- endfor %} class VariableShortcuts;{% for item in NAMESPACE -%} } {%- endfor %} class {{NAMESPACE|join("::")}}::VariableShortcuts { public: static constexpr int NumberOfDistinctVariables={{VARIABLE_NAMES|length}}; static constexpr int Q[NumberOfDistinctVariables+1]={ {% for VARIABLE_NO in range(0, VARIABLE_NAMES|length-1) -%} {{VARIABLE_POSITIONS[VARIABLE_NO]}}, {%- endfor %} {{VARIABLE_POSITIONS[VARIABLE_NAMES|length-1]}} }; {% for VARIABLE_NO in range(0, VARIABLE_NAMES|length) %} static constexpr int {{VARIABLE_NAMES[VARIABLE_NO]}}={{VARIABLE_POSITIONS[VARIABLE_NO]}}; {% endfor %} constexpr int operator[](const int index) const noexcept { return Q[index];} constexpr int operator()(const int index) const noexcept { return Q[index];} } {{NAMESPACE|join("::")}}::VariableShortcuts VariableShortcuts
Definition
VariableShortcuts.template.h:46
postprocessing.treeReaderWithSplit.index
int index
Definition
treeReaderWithSplit.py:117
Definition at line
46
of file
VariableShortcuts.template.h
.
python
exahype2
solvers
VariableShortcuts.template.h
Generated on
for Peano by
1.15.0