From 676a9f2fd2166280dce684744a3590d146b25802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gilles?= <sebastien.gilles@inria.fr> Date: Tue, 4 Oct 2022 10:18:01 +0200 Subject: [PATCH] Change names in hpp and hxx files that were forgotten in previous commit. --- .../Solution/Exercice43/TestDisplay.hpp | 6 +++--- .../Solution/Exercice43/TestDisplay.hxx | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hpp b/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hpp index f82b2ed..e429cc4 100644 --- a/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hpp +++ b/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hpp @@ -109,15 +109,15 @@ public: template<class IntT> -class TestDisplayMultiply : public TestDisplay +class TestDisplaySumOfMultiply : public TestDisplay { public: //! Constructor. - explicit TestDisplayMultiply(int resolution); + explicit TestDisplaySumOfMultiply(int resolution); //! To make the class a concrete one. - virtual ~TestDisplayMultiply() override; + virtual ~TestDisplaySumOfMultiply() override; //! Display the output for the chosen `Nbits`. diff --git a/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hxx b/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hxx index 00f8711..6b8e330 100644 --- a/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hxx +++ b/HandsOn/6-InRealEnvironment/Solution/Exercice43/TestDisplay.hxx @@ -86,24 +86,24 @@ void TestDisplayPowerOfTwoApprox035<IntT>::operator()(int Nbits) const template<class IntT> -TestDisplayMultiply<IntT>::TestDisplayMultiply(int resolution) +TestDisplaySumOfMultiply<IntT>::TestDisplaySumOfMultiply(int resolution) : TestDisplay(resolution) { } template<class IntT> -TestDisplayMultiply<IntT>::~TestDisplayMultiply() = default; +TestDisplaySumOfMultiply<IntT>::~TestDisplaySumOfMultiply() = default; template<class IntT> -void TestDisplayMultiply<IntT>::operator()(int Nbits) const +void TestDisplaySumOfMultiply<IntT>::operator()(int Nbits) const { Display(Nbits, -0.65, static_cast<IntT>(3515), 0.35, static_cast<IntT>(4832)); } template<class IntT> -void TestDisplayMultiply<IntT>::Display(int Nbits, double value1, IntT coefficient1, double value2, IntT coefficient2) const +void TestDisplaySumOfMultiply<IntT>::Display(int Nbits, double value1, IntT coefficient1, double value2, IntT coefficient2) const { try { @@ -121,7 +121,7 @@ void TestDisplayMultiply<IntT>::Display(int Nbits, double value1, IntT coefficie IntT approx; if (__builtin_add_overflow(part1, part2, &approx)) - throw Error("Overflow (in TestDisplayMultiply<IntT>::Display())!"); + throw Error("Overflow (in TestDisplaySumOfMultiply<IntT>::Display())!"); PrintLine<IntT>(Nbits, exact, static_cast<double>(approx), oconv.str(), "", RoundToInteger::yes); } -- GitLab