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
cplscheme
ImplicitData.cpp
Go to the documentation of this file.
1
#include "
cplscheme/ImplicitData.hpp
"
2
#include "
utils/assertion.hpp
"
3
4
namespace
precice::cplscheme
{
5
6
void
ImplicitData::add
(
DataID
did,
bool
toKeep)
7
{
8
PRECICE_ASSERT
(
entries
.
count
(did) == 0);
9
entries
[did] =
toKeep
;
10
}
6
void
ImplicitData::add
(
DataID
did,
bool
toKeep) {
…
}
11
12
bool
ImplicitData::contains
(
DataID
did)
const
13
{
14
return
entries
.
count
(did) > 0;
15
}
12
bool
ImplicitData::contains
(
DataID
did)
const
{
…
}
16
17
bool
ImplicitData::toKeep
(
DataID
did)
const
18
{
19
PRECICE_ASSERT
(
contains
(did));
20
return
entries
.
at
(did);
21
}
17
bool
ImplicitData::toKeep
(
DataID
did)
const
{
…
}
22
23
}
// namespace precice::cplscheme
ImplicitData.hpp
assertion.hpp
PRECICE_ASSERT
#define PRECICE_ASSERT(...)
Definition
assertion.hpp:85
std::map::at
T at(T... args)
std::map::count
T count(T... args)
precice::cplscheme
contains implementations of coupling schemes for coupled simulations.
Definition
BaseCouplingScheme.cpp:33
precice::DataID
int DataID
Definition
Types.hpp:25
precice::cplscheme::ImplicitData::contains
bool contains(DataID did) const
Definition
ImplicitData.cpp:12
precice::cplscheme::ImplicitData::toKeep
bool toKeep(DataID did) const
Definition
ImplicitData.cpp:17
precice::cplscheme::ImplicitData::add
void add(DataID did, bool toKeep)
Definition
ImplicitData.cpp:6
precice::cplscheme::ImplicitData::entries
std::map< DataID, bool > entries
Definition
ImplicitData.hpp:15