preCICE v3.1.2
Loading...
Searching...
No Matches
ImplicitData.cpp
Go to the documentation of this file.
2#include "utils/assertion.hpp"
3
4namespace precice::cplscheme {
5
6void ImplicitData::add(DataID did, bool toKeep)
7{
9 entries[did] = toKeep;
10}
11
13{
14 return entries.count(did) > 0;
15}
16
18{
20 return entries.at(did);
21}
22
23} // namespace precice::cplscheme
#define PRECICE_ASSERT(...)
Definition assertion.hpp:87
T at(T... args)
T count(T... args)
contains implementations of coupling schemes for coupled simulations.
int DataID
Definition Types.hpp:25
bool contains(DataID did) const
bool toKeep(DataID did) const
void add(DataID did, bool toKeep)
std::map< DataID, bool > entries