NeoN
A framework for CFD software
Loading...
Searching...
No Matches
include
NeoN
core
input.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2023 - 2025 NeoN authors
2
//
3
// SPDX-License-Identifier: MIT
4
5
#pragma once
6
7
#include <variant>
8
9
#include "
NeoN/core/dictionary.hpp
"
10
#include "
NeoN/core/tokenList.hpp
"
11
12
namespace
NeoN
13
{
14
15
using
Input
= std::variant<Dictionary, TokenList>;
16
17
template
<
class
DataClass>
18
DataClass
read
(
Input
input)
19
{
20
return
std::visit([](
const
auto
& i) {
return
DataClass::read(i); }, input);
21
}
22
23
}
dictionary.hpp
NeoN
Definition
array.hpp:20
NeoN::Input
std::variant< Dictionary, TokenList > Input
Definition
input.hpp:15
NeoN::read
DataClass read(Input input)
Definition
input.hpp:18
tokenList.hpp
Generated by
1.9.8