preCICE v3.2.0
Loading...
Searching...
No Matches
DataContextFixture.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace precice::testing {
7/*
8 * @brief A fixture that is used to access private functions of the DataContext class.
9 *
10 * The fixture can be used to call private functions for individual testing.
11 */
13public:
15
17
18 int getFromDataID(precice::impl::DataContext &dataContext, int dataVectorIndex);
19
20 int getToDataID(precice::impl::DataContext &dataContext, int dataVectorIndex);
21
22 bool hasMapping(precice::impl::DataContext &dataContext);
23
25
27};
28
29} // namespace precice::testing
Stores one Data object with related mesh.
int getToDataID(precice::impl::DataContext &dataContext, int dataVectorIndex)
int getProvidedDataID(precice::impl::DataContext &dataContext)
bool hasReadMapping(precice::impl::DataContext &dataContext)
int getFromDataID(precice::impl::DataContext &dataContext, int dataVectorIndex)
bool hasWriteMapping(precice::impl::DataContext &dataContext)
bool hasMapping(precice::impl::DataContext &dataContext)
std::vector< impl::MappingContext > mappingContexts(precice::impl::DataContext &dataContext)
contains the testing framework.
Definition helper.hpp:9