preCICE v3.1.1
Loading...
Searching...
No Matches
DataContextFixture.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace precice {
7namespace testing {
8/*
9 * @brief A fixture that is used to access private functions of the DataContext class.
10 *
11 * The fixture can be used to call private functions for individual testing.
12 */
14public:
16
18
19 int getFromDataID(precice::impl::DataContext &dataContext, int dataVectorIndex);
20
21 int getToDataID(precice::impl::DataContext &dataContext, int dataVectorIndex);
22
23 bool hasMapping(precice::impl::DataContext &dataContext);
24
26
28};
29
30} // namespace testing
31} // namespace precice
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)
Main namespace of the precice library.