This is a ping pong test for objects hosting some smart pointers and their stack.
More...
#include <STDVectorStackOverObjectsWithSmartPointersTest.h>
This is a ping pong test for objects hosting some smart pointers and their stack.
This routine requires a couple of generated/C++ files that you might want to regenerate sometimes. To do so, switch into the test directory and type in
export PYTHONPATH=~/git/Peano/python
python3
prepare-test-datastructures.py
-test-datastructures This Python script uses/invokes DaStGen2 to generate all the datatypes required ...
Definition at line 33 of file STDVectorStackOverObjectsWithSmartPointersTest.h.
◆ STDVectorStackOverObjectsWithSmartPointersTest()
| peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::STDVectorStackOverObjectsWithSmartPointersTest |
( |
| ) |
|
◆ run()
| virtual void peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::run |
( |
| ) |
|
|
overridevirtual |
◆ testFlattening()
| void peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::testFlattening |
( |
| ) |
|
|
private |
The objects with the smart pointers rely on flattening internally.
We check if this flatteneing works properly.
◆ testMPIExchangeOfFlattenedObject()
| void peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::testMPIExchangeOfFlattenedObject |
( |
| ) |
|
|
private |
◆ testMPIExchangeOfSingleObject()
| void peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::testMPIExchangeOfSingleObject |
( |
| ) |
|
|
private |
Works only for more than one MPI rank and then checks only the flattened object, as we do not support sends or receives on objects with smart pointers directly.
We can use the original object directly, as long as we use the generated send() and receive(). These guys do the flatteneing inside the routine.
◆ testMultipleConcurrentStackExchanges()
| void peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::testMultipleConcurrentStackExchanges |
( |
| ) |
|
|
private |
◆ testSingleStackExchange()
| void peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::testSingleStackExchange |
( |
| ) |
|
|
private |
◆ testStack()
| void peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::testStack |
( |
int |
repetitions | ) |
|
|
private |
Test if stack implementation works.
◆ _log
| tarch::logging::Log peano4::stacks::tests::STDVectorStackOverObjectsWithSmartPointersTest::_log |
|
staticprivate |
The documentation for this class was generated from the following file: