24 #ifndef SKA_CHEETAH_DDTR_TEST_DDTRTESTER_H 25 #define SKA_CHEETAH_DDTR_TEST_DDTRTESTER_H 27 #include "cheetah/generators/pulse_profile/ProfileManager.h" 28 #include "cheetah/ddtr/Ddtr.h" 29 #include "cheetah/utils/test_utils/AlgorithmTester.h" 30 #include "panda/ResourcePool.h" 31 #include "panda/test/TestResourcePool.h" 32 #include <gtest/gtest.h> 70 template<
typename ArchitectureTag,
typename NumericalT=u
int8_t,
typename TimeFrequencyT = data::TimeFrequency<cheetah::Cpu, NumericalT>>
74 typedef ArchitectureTag Arch;
75 typedef typename BaseT::PoolType PoolType;
76 typedef NumericalT NumericalRep;
77 typedef TimeFrequencyT TimeFrequencyType;
82 typedef typename DdtrTesterTraits<ArchitectureTag>::PoolType PoolType;
86 PoolType& pool()
const { assert(_pool);
return *_pool; }
87 void set_pool(PoolType& pool) { _pool = &pool; }
96 typedef typename std::vector<std::shared_ptr<DmType>> DmDataContainerType;
101 Api& api(PoolType& pool);
105 bool dm_handler_called()
const;
110 DmDataContainerType
const& dm_data()
const;
121 DmDataContainerType _dm_data;
122 std::size_t _dm_call_count;
124 std::unique_ptr<Api> _api;
129 template <
typename TestTraits>
149 #include "cheetah/ddtr/test_utils/detail/DdtrTester.cpp" 152 #endif // SKA_CHEETAH_DDTR_TEST_DDTRTESTER_H
An API for accessing pulsar pulse profiles.
Some limits and constants for FLDO.
DDTR module top level API.
std::size_t dm_handler_call_count() const
return true if the dm_handler has been called
Base class for generic algortihm tests that require an accelerator device.
A continuous memory container for dispersion measure trials of varying downsamplings.