preCICE
v3.2.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
h
i
m
n
p
r
s
t
Typedefs
b
d
e
g
l
m
p
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
c
d
e
i
l
m
n
o
r
s
u
v
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
g
i
j
m
n
o
p
r
s
t
v
Functions
a
b
c
g
m
p
r
s
t
v
Variables
Typedefs
Macros
b
d
m
n
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
src
utils
TypeNames.hpp
Go to the documentation of this file.
1
/*
2
* Returns pretty type names for various types.
3
* Used for generating the XML documentation.
4
* They are inlined, so that they don't need to be defined in a separate cpp file.
5
*/
6
7
#pragma once
8
9
#include <Eigen/Core>
10
#include <
string
>
11
12
namespace
precice::utils
{
13
14
inline
std::string
getTypeName
(
const
double
&var)
15
{
16
return
"float"
;
17
}
14
inline
std::string
getTypeName
(
const
double
&var) {
…
}
18
19
inline
std::string
getTypeName
(
const
std::string
&var)
20
{
21
return
"string"
;
22
}
19
inline
std::string
getTypeName
(
const
std::string
&var) {
…
}
23
24
inline
std::string
getTypeName
(
const
bool
&var)
25
{
26
return
"boolean"
;
27
}
24
inline
std::string
getTypeName
(
const
bool
&var) {
…
}
28
29
inline
std::string
getTypeName
(
const
int
&var)
30
{
31
return
"integer"
;
32
}
29
inline
std::string
getTypeName
(
const
int
&var) {
…
}
33
34
inline
std::string
getTypeName
(Eigen::VectorXd
const
&var)
35
{
36
return
"vector"
;
37
}
34
inline
std::string
getTypeName
(Eigen::VectorXd
const
&var) {
…
}
38
39
}
// namespace precice::utils
std::string
precice::utils
contains precice-related utilities.
Definition
PointToPointCommunicationTest.cpp:23
precice::utils::getTypeName
std::string getTypeName(const double &var)
Definition
TypeNames.hpp:14
string